我现在已经完成了Hadoop单机部署,没有任何错误,但是我尝试伪分发Hadoop,发现slave无法连接到主机。slave的错误日志是这样的:
'hadoop-root-nodemanager-node-2.log'是
2023-07-07 09:48:52,735 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8031. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
2023-07-07 09:48:53,737 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: 0.0.0.0/0.0.0.0:8031. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1000 MILLISECONDS)
字符串
'hadoop-root-datanode-node-2.log'是
2023-07-07 09:50:18,090 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Block pool BP-1565964139-192.168.101.10-1688725270162 (Datanode Uuid 27e1a679-472d-47b1-a1ed-e8354f65b576) service to node-1/192.168.101.10:9000 beginning handshake with NN
2023-07-07 09:50:18,091 INFO org.apache.hadoop.hdfs.server.datanode.DataNode: Block pool BP-1565964139-192.168.101.10-1688725270162 (Datanode Uuid 27e1a679-472d-47b1-a1ed-e8354f65b576) service to node-1/192.168.101.10:9000 successfully registered with NN
型
我确信从机的主机名和IP地址是正确的。作为一个初学者,我不确定为什么会出现这个问题。另外,我已经将/hadoop/etc/hadoop/worker修改为正确的主机名。请帮帮我
1条答案
按热度按时间uujelgoq1#
您需要在所有集群(包括datanode)中亚尔姆site xml中设置
yarn.resourcemanager.address