hadoop 不能正常启动

启动 hadoop 后,datanode 的 log 里一直报错,提示连不上 namenode。

2011-03-30 00:14:00,582 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 0 time(s).
2011-03-30 00:14:01,583 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 1 time(s).
2011-03-30 00:14:02,585 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 2 time(s).
2011-03-30 00:14:03,586 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 3 time(s).
2011-03-30 00:14:04,588 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 4 time(s).
2011-03-30 00:14:05,590 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 5 time(s).
2011-03-30 00:14:06,591 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 6 time(s).
2011-03-30 00:14:07,593 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 7 time(s).
2011-03-30 00:14:08,594 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 8 time(s).
2011-03-30 00:14:09,596 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: uec-fe/16.157.63.10:9000. Already tried 9 time(s).
2011-03-30 00:14:09,597 INFO org.apache.hadoop.ipc.RPC: Server at uec-fe/16.157.63.10:9000 not available yet, Zzzzz...

经过测试,在 namenode 上能连接 9000 端口。推测 hadoop 启动 ipc server 时只绑定在本地地址上。修改 /etc/hosts,把与 hostname 相关的配置删除后,hadoop 成功启动。
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值