Hadoop集群live nodes为0解决方案

集群搭好后查看live nodes数一直为0,查看logs中显示如下内容:

2012-07-02 10:44:20,270 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 0 time(s).

2012-07-02 10:44:21,458 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 1 time(s).
2012-07-02 10:44:22,459 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 2 time(s).

2012-07-02 10:44:23,460 INFO org.apache.hadoop.ipc.Client: Retrying connect to server: localhost/127.0.0.1:9000. Already tried 3 time(s).


最后发现问题出在/etc/hosts文件,将127.0.1.1这个IP所在行注释掉即可,如下:

127.0.0.1 localhost
#127.0.1.1 geekpc

你可能感兴趣的:(Hadoop)