2014-03-02 85 views
0

我有2个节点的群集设置。一个是“主从”和其他“奴隶”。
名称节点服务启动Hadoop数据节点未连接到主节点

“从” 节点没有连接到主节点,给人错误

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).

一)。 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)。在核心的site.xml

<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 /主机(在从节点相同)

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从奴隶到主从,但能够在端口22

看起来很奇怪,请帮我解决这个问题。我已经做出了我所知道的每一个变化,但没有运气

+0

从主站输出'netstat -nlp' – 1esha

+0

日志中有其他错误?这是在这种情况发生之前,您第一次启动hadoop群集或其运行? –

+0

感谢您的回复。 这里是netstat的输出http://pastebin.com/btxMexzr @VikasHardia日志中没有其他错误。这是我第一次启动这个群集。 FYI还添加了奴隶文件中的节点(配置文件) – user3369960

回答

0

对于这里未来的参考是问题,因为主机文件编辑该文件并删除该条目

127.0.1.1 master-slave 

删除它工作正常后。

相关问题