我按照教程来安装hadoop:http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/现在我陷入了“将本地示例数据复制到HDFS”这一步。
我得到的连接错误是:
<12/10/26 17:29:16 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 0 time(s).
12/10/26 17:29:17 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 1 time(s).
12/10/26 17:29:18 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 2 time(s).
12/10/26 17:29:19 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 3 time(s).
12/10/26 17:29:20 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 4 time(s).
12/10/26 17:29:21 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 5 time(s).
12/10/26 17:29:22 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 6 time(s).
12/10/26 17:29:23 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 7 time(s).
12/10/26 17:29:24 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 8 time(s).
12/10/26 17:29:25 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:54310. Already tried 9 time(s).
Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:54310 failed on connection exception: java.net.ConnectException: Connection refused
这与这个问题几乎是一样的:Errors while running hadoop
现在的重点是,我已经禁用了ivp6,就像上面的教程中描述的那样,但它没有帮助。是不是我漏掉了什么?
编辑:
我在另一台新安装了ubuntu的机器上重复了该教程,并一步一步地对其进行了比较。事实证明,hduser的bashrc配置中存在一些bug。之后它工作得很好。
发布于 2012-10-27 01:59:14
如果我在DataNode/NameNode未运行时尝试执行Hadoop fs <anything>
,我会得到确切的错误消息,因此我猜您也会遇到同样的情况。
在终端中键入jps
。如果一切都在运行,它应该如下所示:
16022 DataNode
16524 Jps
15434 TaskTracker
15223 JobTracker
15810 NameNode
16229 SecondaryNameNode
我敢打赌你是DataNode或者NameNode没有运行。如果jps的打印输出中缺少任何内容,请重新启动它。
发布于 2013-09-26 16:38:54
完成整个配置后,发出以下命令
hadoop namenode -formate
并通过以下命令启动所有服务
start-all.sh
这会解决你的问题
https://stackoverflow.com/questions/13090416
复制相似问题