hadoop:namenode、datanode和secondarynamenode没有运行

bbmckpt7  于 2021-06-04  发布在  Hadoop
关注(0)|答案(5)|浏览(300)

我正在尝试使用本教程在我的计算机上的单节点集群上安装hadoop2.2.0http://codesfusion.blogspot.gr/2013/10/setup-hadoop-2x-220-on-ubuntu.html?m=1 . 我遵循我看到的每一个指示,一步一步,但我每次都有同样的问题。namenode、datanode和secondarynamenode未运行。输入start-dfs.sh、start-yarn.sh和jps时看到的消息是:

hduser@victor-OEM:/usr/local/hadoop/sbin$ start-dfs.sh
Incorrect configuration: namenode address dfs.namenode.servicerpc-address or dfs.namenode.rpc-address is not configured.
Starting namenodes on []
localhost: starting namenode, logging to /usr/local/hadoop/logs/hadoop-hduser-namenode-victor-OEM.out
localhost: starting datanode, logging to /usr/local/hadoop/logs/hadoop-hduser-datanode-victor-OEM.out
Starting secondary namenodes [0.0.0.0]
The authenticity of host '0.0.0.0 (0.0.0.0)' can't be established.
ECDSA key fingerprint is 62:ec:99:e3:ce:2d:f8:79:1f:f8:9a:2a:25:9d:17:95.
Are you sure you want to continue connecting (yes/no)? yes
0.0.0.0: Warning: Permanently added '0.0.0.0' (ECDSA) to the list of known hosts.
0.0.0.0: starting secondarynamenode, logging to /usr/local/hadoop/logs/hadoop-hduser-secondarynamenode-victor-OEM.out
hduser@victor-OEM:/usr/local/hadoop/sbin$ start-yarn.sh
starting yarn daemons
starting resourcemanager, logging to /usr/local/hadoop/logs/yarn-hduser-resourcemanager-victor-OEM.out
localhost: starting nodemanager, logging to /usr/local/hadoop/logs/yarn-hduser-nodemanager-victor-OEM.out
hduser@victor-OEM:/usr/local/hadoop/sbin$ jps
10684 NodeManager
10745 Jps
10455 ResourceManager
okxuctiv

okxuctiv1#

在hadoop-env.sh中禁用ipv6:

export HADOOP_OPTS=-Djava.net.preferIPv4Stack=true
ndasle7k

ndasle7k2#

你可以试试这个link:leraning hadoop. 它适用于0.23.9,但也适用于2.2.0

3yhwsihp

3yhwsihp3#

我尝试了以下步骤:
ssh keygen-t rsa-p“”
cat$home/.ssh/id\u rsa.pub>>$home/.ssh/authorized\u密钥
之后,打开一个新的终端,启动hadoop集群,解决了我的问题。

swvgeqrz

swvgeqrz4#

codefusion教程的某些版本(如本教程)忽略了代码块中的xml标记,因此:


# add this to foo.txt

<bizz>bar</bizz>

成为:


# add this to foo.txt

bar

在配置中包含xml标记解决了这个问题。

rjee0c15

rjee0c155#

我也有同样的问题。
我通过关闭防火墙解决了这个问题。
就用这个命令

sudo ufw disbale

相关问题