纱线节点管理器未启动

纱线节点管理器未启动

本文介绍了纱线节点管理器未启动。获取没有错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在Ubuntu 16.04上安装了Hadoop 2.7.4。我试图在伪模式下运行它。
我为所有的hadoop文件,NameNode和DataNode文件装载了'/ hadoop'分区。

I have Hadoop 2.7.4 installed on Ubuntu 16.04. I'm trying to run it in Pseudo Mode.I have a '/hadoop' partition mounted for all my hadoop files, NameNode and DataNode files.

我的core-site.xml是:

My core-site.xml is:

<configuration>

<property>
<name>fs.defaultFS</name>
<value>hdfs://localhost:9000</value>
</property>

</configuration>

我的hdfs-site.xml是:

My hdfs-site.xml is:

<configuration>

<property>
<name>dfs.replication</name>
<value>1</value>
</property>

<property>
<name>dfs.name.dir</name>
<value>/hadoop/nodes/namenode</value>
</property>

<property>
<name>dfs.data.dir</name>
<value>/hadoop/nodes/datanode</value>
</property>

</configuration>

我的mapred-site.xml是:

My mapred-site.xml is:

<configuration>

<property>
<name>Map-Reduce.framework.name</name>
<value>yarn</value>
</property>

</configuration>

我的yarn-site.xml是:

My yarn-site.xml is:

<configuration>

<property>
<name>yarn.nodemanager.aux-services</name>
<value>Map-Reduce_shuffle</value>
</property>

</configuration>

运行后

After running

$ start-dfs.sh
$ start-yarn.sh
$ jps


$

I get the following daemons running.

2800 ResourceManager
2290 NameNode
4242 Jps
2440 DataNode
2634 SecondaryNameNode

start-yarn.sh给我:

start-yarn.sh gives me:

$ start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /hadoop/hadoop-2.7.4/logs/yarn-abdy-resourcemanager-abdy-hadoop.out
localhost: starting nodemanager, logging to /hadoop/hadoop-2.7.4/logs/yarn-abdy-nodemanager-abdy-hadoop.out

nodemanager守护程序似乎根本不会启动。
我已经尝试了2天来解决这个问题,但我似乎无法找到解决办法。有人请指导我。

The nodemanager daemon does not seem to start at all.I've tried for 2 days to fix this issue but I cannot seem to find a fix. Someone please guide me.

推荐答案

如果您第一次启动hadoop守护进程,那么



首先,您必须格式化您的namenode:

If your going to start hadoop daemons for the first time.

First you have to format your namenode :

hadoop namenode -format



然后执行:

Then you execute:

hadoop namenode -format

一旦格式化了namenode

Once formatting of namenode is done.
you execute following commands.

start-dfs.sh
start-yarn.sh

这篇关于纱线节点管理器未启动。获取没有错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-24 04:12