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

相关文章

深度解析Java @Serial 注解及常见错误案例

《深度解析Java@Serial注解及常见错误案例》Java14引入@Serial注解,用于编译时校验序列化成员,替代传统方式解决运行时错误,适用于Serializable类的方法/字段,需注意签... 目录Java @Serial 注解深度解析1. 注解本质2. 核心作用(1) 主要用途(2) 适用位置3

Debian 13升级后网络转发等功能异常怎么办? 并非错误而是管理机制变更

《Debian13升级后网络转发等功能异常怎么办?并非错误而是管理机制变更》很多朋友反馈,更新到Debian13后网络转发等功能异常,这并非BUG而是Debian13Trixie调整... 日前 Debian 13 Trixie 发布后已经有众多网友升级到新版本,只不过升级后发现某些功能存在异常,例如网络转

Spring创建Bean的八种主要方式详解

《Spring创建Bean的八种主要方式详解》Spring(尤其是SpringBoot)提供了多种方式来让容器创建和管理Bean,@Component、@Configuration+@Bean、@En... 目录引言一、Spring 创建 Bean 的 8 种主要方式1. @Component 及其衍生注解

SpringBoot3匹配Mybatis3的错误与解决方案

《SpringBoot3匹配Mybatis3的错误与解决方案》文章指出SpringBoot3与MyBatis3兼容性问题,因未更新MyBatis-Plus依赖至SpringBoot3专用坐标,导致类冲... 目录SpringBoot3匹配MyBATis3的错误与解决mybatis在SpringBoot3如果

MySQL 数据库表操作完全指南:创建、读取、更新与删除实战

《MySQL数据库表操作完全指南:创建、读取、更新与删除实战》本文系统讲解MySQL表的增删查改(CURD)操作,涵盖创建、更新、查询、删除及插入查询结果,也是贯穿各类项目开发全流程的基础数据交互原... 目录mysql系列前言一、Create(创建)并插入数据1.1 单行数据 + 全列插入1.2 多行数据

MySQL 临时表创建与使用详细说明

《MySQL临时表创建与使用详细说明》MySQL临时表是存储在内存或磁盘的临时数据表,会话结束时自动销毁,适合存储中间计算结果或临时数据集,其名称以#开头(如#TempTable),本文给大家介绍M... 目录mysql 临时表详细说明1.定义2.核心特性3.创建与使用4.典型应用场景5.生命周期管理6.注

MySQL的触发器全解析(创建、查看触发器)

《MySQL的触发器全解析(创建、查看触发器)》MySQL触发器是与表关联的存储程序,当INSERT/UPDATE/DELETE事件发生时自动执行,用于维护数据一致性、日志记录和校验,优点包括自动执行... 目录触发器的概念:创建触www.chinasem.cn发器:查看触发器:查看当前数据库的所有触发器的定

创建springBoot模块没有目录结构的解决方案

《创建springBoot模块没有目录结构的解决方案》2023版IntelliJIDEA创建模块时可能出现目录结构识别错误,导致文件显示异常,解决方法为选择模块后点击确认,重新校准项目结构设置,确保源... 目录创建spChina编程ringBoot模块没有目录结构解决方案总结创建springBoot模块没有目录

nginx配置错误日志的实现步骤

《nginx配置错误日志的实现步骤》配置nginx代理过程中,如果出现错误,需要看日志,可以把nginx日志配置出来,以便快速定位日志问题,下面就来介绍一下nginx配置错误日志的实现步骤,感兴趣的可... 目录前言nginx配置错误日志总结前言在配置nginx代理过程中,如果出现错误,需要看日志,可以把

Python错误AttributeError: 'NoneType' object has no attribute问题的彻底解决方法

《Python错误AttributeError:NoneTypeobjecthasnoattribute问题的彻底解决方法》在Python项目开发和调试过程中,经常会碰到这样一个异常信息... 目录问题背景与概述错误解读:AttributeError: 'NoneType' object has no at