Hadoop数据节点未连接到主节点

时间:2014-03-02 05:26:11

标签: hadoop cloudera

我有2节点群集设置。一个是“主奴”,另一个是“奴隶” 名称节点服务已启动

“Slave”节点未连接到主节点,发出错误

slave:/usr/lib/hadoop-0.20/conf# tailf /usr/lib/hadoop-0.20/logs/hadoop-hadoop-datanode-slave.log 2014-03-02 10:43:07,816 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 4 time(s). 2014-03-02 10:43:08,817 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 5 time(s). 2014-03-02 10:43:09,820 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 6 time(s). 2014-03-02 10:43:10,821 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master-slave/192.168.1.118:54310. Already tried 7 time(s).

A)。 master-slave:/usr/lib/hadoop/conf# lsof -i:54310 COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME java 3080 hdfs 62u IPv4 22507 0t0 TCP master-slave:54310 (LISTEN)

B)。在core-site.xml中的Slave

<property> <name>fs.default.name</name> <value>hdfs://master-slave:54310</value> <description>The name of the default file system. Either the literal string "local" or a host:port for NDFS.</description> <final>true</final> </property>

C)。主节点/ etc / hosts(从节点中相同)

master-slave:/usr/lib/hadoop/conf# cat /etc/hosts 127.0.0.1 localhost 127.0.1.1 master-slave 192.168.1.118 master-slave 192.168.1.120 slave

d)。我已禁用IPV6。

E)。我无法telnet到端口54310从slave到master-slave但​​能够在端口22上

看起来很奇怪,请帮我解决问题。我做了所有我知道的改变,但没有运气。

1 个答案:

答案 0 :(得分:0)

以下参考此处是由于主机文件编辑文件并删除此条目而导致的问题

127.0.1.1 master-slave 

删除后效果很好。