3

我正在使用 Cloudera Hadoop (cdh3u1),但遇到以下错误消息:

[root@paul 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

我在名为 Paul 的从节点上运行此程序,并尝试连接到名为 Peter 的主节点。请帮忙!

4

1 回答 1

1

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

查看 :

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

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

于 2012-09-16T17:46:10.127 回答