在用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)
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
- 在用hadoop fs -ls 时报failed onconnetion的错误
- HDFS------hadoop fs -ls命令的执行过程
- HDFS------hadoop fs -ls命令的执行过程
- hadoop fs -ls command not found
- hadoop fs -ls / 报错-----解决方法
- 运行hadoop fs -put 命令时报错
- hadoop只想 ./hadoop fs -ls / 命令出现Bad connection to FS. command aborted.
- 运行hadoop fs -ls 命令显示本地目录问题
- hadoop fs -ls results in “no such file or directory”
- hadoop在启动时报错如何定位到错误
- 启动eclipse时报Failed to load JNI的错误
- 在unix下面使用dwr时报DwrServlet.init() failed,setSeed() failed错误 解决方法
- Hadoop权限问题以及Wrong FS错误
- hadoop的fs基本命令
- 在播放音乐时报PVMFErrNotSupported Prepare failed的解决方法
- hadoop fs 与 hadoop dfs 的区别
- Hadoop fs 和Hadoop dfs 的区别
- Hadoop源码学习-脚本命令(hadoop fs -ls)执行细节
- SQL Server中将日期转换成字符串
- 单向链表的实现
- C++多态的实现及原理详细解析
- microstation level3 13 extrusion with span
- 重构系列之对象行为的重构:《重构》重新组织函数
- 在用hadoop fs -ls 时报failed onconnetion的错误
- 常用的html字符实体大全
- C# 多态性
- 双端链表
- Tomcat下面有多少个重要的文件夹?每个文件夹起到什么作用?
- linux PC安装minigui
- 《程序员必读软件架构 Part4 可视化软件》(二)软件架构中用到的图
- 【3004】循环数
- Binary Tree Vertical Order Traversal