hadoop创建两大错误:Bad connection to FS. command aborted. exception和Shutting down NameNod......

本文主要是介绍hadoop创建两大错误:Bad connection to FS. command aborted. exception和Shutting down NameNod......,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!

我的hadoop启动后,各个节点都正常,但是无法查看hdfs目录,错误提示

 Bad connection to FS. command aborted.  查了下网上的解决办法,主要是删除tmp下的所有文件,然后格式化就可以了。

原文:http://www.tuicool.com/articles/J7R3mei

 

问题目录表:

Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:8888

failed on connection exception: java.net.ConnectException: Connection refused

 遇到错误:

Error代码   收藏代码

  1. 11 / 08 / 18   14 : 56 : 37  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  2. . 1 : 8888 . Already tried  0  time(s).  
  3. 11 / 08 / 18   14 : 56 : 39  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  4. . 1 : 8888 . Already tried  1  time(s).  
  5. 11 / 08 / 18   14 : 56 : 41  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  6. . 1 : 8888 . Already tried  2  time(s).  
  7. 11 / 08 / 18   14 : 56 : 43  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  8. . 1 : 8888 . Already tried  3  time(s).  
  9. 11 / 08 / 18   14 : 56 : 45  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  10. . 1 : 8888 . Already tried  4  time(s).  
  11. 11 / 08 / 18   14 : 56 : 47  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  12. . 1 : 8888 . Already tried  5  time(s).  
  13. 11 / 08 / 18   14 : 56 : 49  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  14. . 1 : 8888 . Already tried  6  time(s).  
  15. 11 / 08 / 18   14 : 56 : 51  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  16. . 1 : 8888 . Already tried  7  time(s).  
  17. 11 / 08 / 18   14 : 56 : 53  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  18. . 1 : 8888 . Already tried  8  time(s).  
  19. 11 / 08 / 18   14 : 56 : 55  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  20. . 1 : 8888 . Already tried  9  time(s).  

Error代码   收藏代码

  1. Bad connection to FS. command aborted. exception : Call to localhost/ 127.0 . 0.1: 88   
  2. 88 failed on connection exception: java.net.ConnectException: Connection refused  
  3. : no further information  
  4. <span style= "color: #ff0000;" >  
  5. </span>  

错误提示“Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:88

88 failed on connection exception: java.net.ConnectException: Connection refused

: no further information”

 起初怀疑是fs服务没有启动,但反复关闭启动多次后仍没用,请教高手后,被建议重新格式化namenode,就可以了。

格式化指令如下(在hadoop的bin目录下):

Shell代码   收藏代码

  1. $ ./hadoop namenode -format  

成功 之后重启hadoop就可以了

2,如果显示的像一下错误信息:

Error代码   收藏代码

  1. $ bin/hadoop fs -ls /  
  2. 11 / 08 / 18   17 : 02 : 35  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  3. . 1 : 9000 . Already tried  0  time(s).  
  4. 11 / 08 / 18   17 : 02 : 37  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  5. . 1 : 9000 . Already tried  1  time(s).  
  6. 11 / 08 / 18   17 : 02 : 39  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  7. . 1 : 9000 . Already tried  2  time(s).  
  8. 11 / 08 / 18   17 : 02 : 41  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  9. . 1 : 9000 . Already tried  3  time(s).  
  10. 11 / 08 / 18   17 : 02 : 43  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  11. . 1 : 9000 . Already tried  4  time(s).  
  12. 11 / 08 / 18   17 : 02 : 45  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  13. . 1 : 9000 . Already tried  5  time(s).  
  14. 11 / 08 / 18   17 : 02 : 46  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  15. . 1 : 9000 . Already tried  6  time(s).  
  16. 11 / 08 / 18   17 : 02 : 48  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  17. . 1 : 9000 . Already tried  7  time(s).  
  18. 11 / 08 / 18   17 : 02 : 50  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  19. . 1 : 9000 . Already tried  8  time(s).  
  20. 11 / 08 / 18   17 : 02 : 52  INFO ipc.Client: Retrying connect to server: localhost/127.0 . 0   
  21. . 1 : 9000 . Already tried  9  time(s).  

Error代码   收藏代码

  1. Bad connection to FS. command aborted.  

错误提示“Bad connection to FS. command aborted.”

  把你DataNode上的DFS数据全删了,再重新格式化NameNode。

 即:先将你D盘下tmp目录下所有文件删了,在重复上面第一点的过程

3, 在cygwin上执行wordcount时报FileNotFoundException

原因: tmp路径有问题。配置文件mapred-site.xml中mapred.child.tmp默认是"./tmp",在windows里会出问题

解决:将其改为D:/tmp(这个是windows下默认的,听说改成其他绝对路径也可以,会自动创建),之后重启hadoop即可

转载于:https://www.cnblogs.com/catWang/p/4013410.html

这篇关于hadoop创建两大错误:Bad connection to FS. command aborted. exception和Shutting down NameNod......的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!



http://www.chinasem.cn/article/577396

相关文章

Python中使用uv创建环境及原理举例详解

《Python中使用uv创建环境及原理举例详解》uv是Astral团队开发的高性能Python工具,整合包管理、虚拟环境、Python版本控制等功能,:本文主要介绍Python中使用uv创建环境及... 目录一、uv工具简介核心特点:二、安装uv1. 通过pip安装2. 通过脚本安装验证安装:配置镜像源(可

SpringBoot排查和解决JSON解析错误(400 Bad Request)的方法

《SpringBoot排查和解决JSON解析错误(400BadRequest)的方法》在开发SpringBootRESTfulAPI时,客户端与服务端的数据交互通常使用JSON格式,然而,JSON... 目录问题背景1. 问题描述2. 错误分析解决方案1. 手动重新输入jsON2. 使用工具清理JSON3.

Java中实现线程的创建和启动的方法

《Java中实现线程的创建和启动的方法》在Java中,实现线程的创建和启动是两个不同但紧密相关的概念,理解为什么要启动线程(调用start()方法)而非直接调用run()方法,是掌握多线程编程的关键,... 目录1. 线程的生命周期2. start() vs run() 的本质区别3. 为什么必须通过 st

如何解决Druid线程池Cause:java.sql.SQLRecoverableException:IO错误:Socket read timed out的问题

《如何解决Druid线程池Cause:java.sql.SQLRecoverableException:IO错误:Socketreadtimedout的问题》:本文主要介绍解决Druid线程... 目录异常信息触发场景找到版本发布更新的说明从版本更新信息可以看到该默认逻辑已经去除总结异常信息触发场景复

Python struct.unpack() 用法及常见错误详解

《Pythonstruct.unpack()用法及常见错误详解》struct.unpack()是Python中用于将二进制数据(字节序列)解析为Python数据类型的函数,通常与struct.pa... 目录一、函数语法二、格式字符串详解三、使用示例示例 1:解析整数和浮点数示例 2:解析字符串示例 3:解

Macos创建python虚拟环境的详细步骤教学

《Macos创建python虚拟环境的详细步骤教学》在macOS上创建Python虚拟环境主要通过Python内置的venv模块实现,也可使用第三方工具如virtualenv,下面小编来和大家简单聊聊... 目录一、使用 python 内置 venv 模块(推荐)二、使用 virtualenv(兼容旧版 P

CentOS 7 YUM源配置错误的解决方法

《CentOS7YUM源配置错误的解决方法》在使用虚拟机安装CentOS7系统时,我们可能会遇到YUM源配置错误的问题,导致无法正常下载软件包,为了解决这个问题,我们可以替换YUM源... 目录一、备份原有的 YUM 源配置文件二、选择并配置新的 YUM 源三、清理旧的缓存并重建新的缓存四、验证 YUM 源

Linux lvm实例之如何创建一个专用于MySQL数据存储的LVM卷组

《Linuxlvm实例之如何创建一个专用于MySQL数据存储的LVM卷组》:本文主要介绍使用Linux创建一个专用于MySQL数据存储的LVM卷组的实例,具有很好的参考价值,希望对大家有所帮助,... 目录在Centos 7上创建卷China编程组并配置mysql数据目录1. 检查现有磁盘2. 创建物理卷3. 创

python3 pip终端出现错误解决的方法详解

《python3pip终端出现错误解决的方法详解》这篇文章主要为大家详细介绍了python3pip如果在终端出现错误该如何解决,文中的示例方法讲解详细,感兴趣的小伙伴可以跟随小编一起了解一下... 目录前言一、查看是否已安装pip二、查看是否添加至环境变量1.查看环境变量是http://www.cppcns

python进行while遍历的常见错误解析

《python进行while遍历的常见错误解析》在Python中选择合适的遍历方式需要综合考虑可读性、性能和具体需求,本文就来和大家讲解一下python中while遍历常见错误以及所有遍历方法的优缺点... 目录一、超出数组范围问题分析错误复现解决方法关键区别二、continue使用问题分析正确写法关键点三