hadoop 不能正常启动

zwjcyz 2011-03-30

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

2011-03-3000:14:00,582INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried0time(s).

2011-03-3000:14:01,583INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried1time(s).

2011-03-3000:14:02,585INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried2time(s).

2011-03-3000:14:03,586INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried3time(s).

2011-03-3000:14:04,588INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried4time(s).

2011-03-3000:14:05,590INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried5time(s).

2011-03-3000:14:06,591INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried6time(s).

2011-03-3000:14:07,593INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried7time(s).

2011-03-3000:14:08,594INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried8time(s).

2011-03-3000:14:09,596INFOorg.apache.hadoop.ipc.Client:Retryingconnecttoserver:uec-fe/16.157.63.10:9000.Alreadytried9time(s).

2011-03-3000:14:09,597INFOorg.apache.hadoop.ipc.RPC:Serveratuec-fe/16.157.63.10:9000notavailableyet,Zzzzz...

经过测试,在namenode上能连接9000端口。推测hadoop启动ipcserver时只绑定在本地地址上。修改/etc/hosts,把与hostname相关的配置删除后,hadoop成功启动。

相关推荐

lionelf / 0评论 2020-07-28