INFO org.apache.hadoop.ipc.RPC: Server at master/192.168.200.128:9000 not available yet, Zzzzz...

本文详细记录了一次Hadoop集群中Datanode无法正常连接到Namenode的问题排查过程,通过修改master节点的hosts文件并重新格式化Namenode,最终解决了Datanode在浏览器中不可见的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

   hadoop 启动时namenode和datanode可以启动,使用jps命令也可以看到进程,但是在浏览器中输入master:50070却没有显示datanode.

查看datanode的log日志:

2016-05-06 13:22:39,899 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:40,901 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:41,903 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:42,905 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:43,907 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:44,908 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:45,910 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:49,236 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:50,238 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: master/192.168.200.128:9000. Already tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10, sleepTime=1 SECONDS)
2016-05-06 13:22:50,240 INFO org.apache.hadoop.ipc.RPC: Server at master/192.168.200.128:9000 not available yet, Zzzzz... 

发现连接不上namenode。

所以在master(也就是namenode)中配置etc/hosts文件,将120.0.0.1 master注释掉,然后添加192.168.200.131 master(如果不注释可能会优先匹配),重新hadoop namenode -format 然后启动就可以了。 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值