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

来源:互联网 发布:淘宝做复制店会封店吗 编辑:程序博客网 时间:2024/05/12 22:23
[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
原创粉丝点击