2012-09-16 34 views
2

我使用了Cloudera的Hadoop(cdh3u1)和我坚持以下错误消息:不良连接到FS

[[email protected] conf.class]# sudo -u hdfs hadoop fs -mkdir /user/training 
12/09/16 07:40:26 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 0 time(s). 
12/09/16 07:40:27 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 1 time(s). 
12/09/16 07:40:28 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 2 time(s). 
12/09/16 07:40:29 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 3 time(s). 
12/09/16 07:40:30 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 4 time(s). 
12/09/16 07:40:31 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 5 time(s). 
12/09/16 07:40:32 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 6 time(s). 
12/09/16 07:40:33 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 7 time(s). 
12/09/16 07:40:34 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 8 time(s). 
12/09/16 07:40:35 INFO ipc.Client: Retrying connect to server: peter/192.168.1.100:8020. Already tried 9 time(s). 
Bad connection to FS. command aborted. exception: Call to peter/192.168.1.100:8020 failed on local exception: java.net.NoRouteToHostException: No route to host 

我跑这个叫保罗,并试图从节点上连接到名为主节点彼得。请帮忙!

回答

0

堆栈跟踪只是说在paul上运行的客户端无法连接到在端口8020上的192.168.1.100上运行的Namenode。

检查:

1)名称节点上彼得/ 192.168.1.100运行:8020。您可以在peter中执行jps以检查Namenode进程是否正在运行,或者尝试从浏览器中的paul或localhost:50070浏览192.168.1.100:50070,以检查namenode的web ui是否会弹出。

2)core-site.xml中的“fs.default.name”,即“192.168.1.100:8020”是运行namenode的服务器的正确地址和端口。

+0

感谢您的帮助。我在节点上列出了paul。现在我有两个,彼得和保罗。 (我曾经有两个奴隶,保罗和玛丽,但减少到一个,只是保罗,因为我厌倦了从三台电脑切换显示器电缆)。虽然我无法浏览保罗的192.168.1.100:50070,但没关系。我有很多问题,比如iptables,apache状态。再次感谢你的帮助。 –