Hadoop hdfs datanode无法找到namenode

时间:2016-11-15 07:59:02

标签: hadoop networking hbase opentsdb

我是hadoop的新手,我最近部署了2个分布式hadoop系统来运行opentsdb。主机A与从机一起是主机,主机B是从机。 在机器A中编辑/ etc / hosts:

127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6
10.94.212.144   node1
10.48.22.52     node2

我没有机器B的root权限,无法修改B&etc / hosts / hosts,所以在B&#39的core-site.xml中,我写道: / p>

<property>
     <name>fs.default.name</name>
     <value>hdfs://10.94.212.144:49000</value>
</property>

在A fs.default.name中是node1:49000 A是主设备,A,B都是从设备,当我运行start-dfs.sh时,namenode,datanode1正常启动,但datanode2无法启动错误:

2016-11-15 12:42:43,103 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 0 time(s).
2016-11-15 12:42:44,106 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 1 time(s).
2016-11-15 12:42:45,109 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 2 time(s).
2016-11-15 12:42:46,112 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 3 time(s).
2016-11-15 12:42:47,115 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 4 time(s).
2016-11-15 12:42:48,117 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 5 time(s).
2016-11-15 12:42:49,120 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 6 time(s).
2016-11-15 12:42:50,123 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 7 time(s).
2016-11-15 12:42:51,125 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 8 time(s).
2016-11-15 12:42:52,128 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: /10.94.212.144:49000. Already tried 9 time(s).

这是网络问题吗?但是当我使用ssh连接A和B时,它没问题。还有什么其他原因?好几天一直困扰着我......

0 个答案:

没有答案