在用hadoop fs -ls 时报failed onconnetion的错误

[root@centos-ywf bin]# hadoop fs -ls hdfs://centos-ywf:9090/
Warning: $HADOOP_HOME is deprecated.


16/07/10 01:42:23 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 0 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:24 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 1 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:25 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 2 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:26 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 3 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:27 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 4 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:28 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 5 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:29 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 6 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:30 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 7 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:31 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 8 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)
16/07/10 01:42:32 INFO ipc.Client: Retrying connect to server: centos-ywf/127.0.0.1:9090. A             lready tried 9 time(s); retry policy is RetryUpToMaximumCountWithFixedSleep(maxRetries=10,              sleepTime=1 SECONDS)

ls: Call to centos-ywf/127.0.0.1:9090 failed on connection exception: java.net.ConnectExcep             tion: Connection refused

解决办法:

http://www.360doc.com/content/13/0903/23/11947209_312048760.shtml

总结原因:

1.namenode启动异常——stop-all.sh重新执行hadoop namenode -format start-all.sh

2.hdfs后面写的端口号与con/core-site.xml中不一致

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值