linux – 无法以伪分布式模式连接到HDFS

linux – 无法以伪分布式模式连接到HDFS,第1张

概述我按照指令 here在伪分布式模式下安装hadoop. 但是,我无法连接到HDFS. 当我执行此命令时: ./hadoop fs -ls / 我得到的目录列表就像我应该的那样. 但是,当我执行此命令时: ./hadoop fs -ls hdfs://localhost/ 我明白了: 12/08/23 15:29:58 INFO ipc.Client: Retrying connect to ser 我按照指令 here在伪分布式模式下安装hadoop.

但是,我无法连接到HDFS.

当我执行此命令时:

./hadoop fs -ls /

我得到的目录列表就像我应该的那样.

但是,当我执行此命令时:

./hadoop fs -ls hdfs://localhost/

我明白了:

12/08/23 15:29:58 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 0 time(s).12/08/23 15:29:59 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 1 time(s).12/08/23 15:30:00 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 2 time(s).12/08/23 15:30:01 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 3 time(s).12/08/23 15:30:02 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 4 time(s).12/08/23 15:30:03 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 5 time(s).12/08/23 15:30:04 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 6 time(s).12/08/23 15:30:05 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 7 time(s).12/08/23 15:30:06 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 8 time(s).12/08/23 15:30:07 INFO ipc.ClIEnt: retrying connect to server: localhost/127.0.0.1:8020. Already trIEd 9 time(s).ls: Call to localhost/127.0.0.1:8020 Failed on connection exception: java.net.ConnectException: Connection refused

如果我在这里浏览:

http://localhost:50070/dfshealth.Jsp

我得到了nameNode系统健康页面,就像我应该的那样.但是,如果我按照“浏览文件系统”链接,我相信这里:

http://localhost:50070/nn_browsedfscontent.Jsp

我从Jetty获得了404页面.

不知道这两件事是否相关,但这肯定会阻止我.我正在尝试按照here概述的伪分布式模式设置hbase,但我不能,因为hbase无法连接到端口8020上的hdfs.

信息

我在CENTOS 6.2上运行hadoop .20和hbase .90.6.

Hadoop和hbase从我编写的init.d脚本开始启动.

Hadoop在hadoop用户下运行,位于/ opt / hadoop中.在hadoop init.d脚本中,我使用daemon命令执行start-all.sh.

HBase在root下运行,位于/ opt / hbase中.在hbase init.d脚本中,我执行start-hbase.sh脚本.目前我在独立模式下运行HBase.

解决方法 看起来我错误地将fs.default.name设置为9000.将其更改为8020,现在一切正常.感谢mgorven的帮助! 总结

以上是内存溢出为你收集整理的linux – 无法以伪分布式模式连接到HDFS全部内容,希望文章能够帮你解决linux – 无法以伪分布式模式连接到HDFS所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/yw/1037045.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-05-24
下一篇 2022-05-24

发表评论

登录后才能评论

评论列表(0条)

保存