gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-02 21:49:44 24 4
gpt4 key购买 nike

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

“从”节点未连接到主节点,显示错误
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)。在从站上core-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 / 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,但能够通过端口22

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

最佳答案

供将来引用,这是由于主机文件引起的问题,请编辑文件并删除此条目

127.0.1.1 master-slave 

删除后,它可以正常工作。

关于hadoop - Hadoop数据节点未连接到主节点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22124218/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com