首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >使用put/copyFromLocal时出现handoop连接错误

使用put/copyFromLocal时出现handoop连接错误
EN

Stack Overflow用户
提问于 2012-10-27 00:02:34
回答 2查看 5.8K关注 0票数 5

我按照教程来安装hadoop:http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/现在我陷入了“将本地示例数据复制到HDFS”这一步。

我得到的连接错误是:

代码语言:javascript
复制
<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。之后它工作得很好。

EN

回答 2

Stack Overflow用户

发布于 2012-10-27 01:59:14

如果我在DataNode/NameNode未运行时尝试执行Hadoop fs <anything>,我会得到确切的错误消息,因此我猜您也会遇到同样的情况。

在终端中键入jps。如果一切都在运行,它应该如下所示:

代码语言:javascript
复制
16022 DataNode
16524 Jps
15434 TaskTracker
15223 JobTracker
15810 NameNode
16229 SecondaryNameNode

我敢打赌你是DataNode或者NameNode没有运行。如果jps的打印输出中缺少任何内容,请重新启动它。

票数 4
EN

Stack Overflow用户

发布于 2013-09-26 16:38:54

完成整个配置后,发出以下命令

hadoop namenode -formate

并通过以下命令启动所有服务

start-all.sh

这会解决你的问题

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/13090416

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档