gpt4 book ai didi

hadoop - hadoop 与 put/copyFromLocal 连接错误

转载 作者:可可西里 更新时间:2023-11-01 14:19:23 24 4
gpt4 key购买 nike

我正在按照教程安装 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 配置中存在一些错误。之后就很好用了。。。

最佳答案

如果我尝试执行 Hadoop fs <anything>,我会收到确切的错误消息当 DataNode/NameNode 没有运行时,我猜你也会遇到同样的情况。

输入 jps在你的终端。如果一切都在运行,它应该看起来像:

16022 DataNode
16524 Jps
15434 TaskTracker
15223 JobTracker
15810 NameNode
16229 SecondaryNameNode

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

关于hadoop - hadoop 与 put/copyFromLocal 连接错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/13090416/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com