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 虚拟线程的创建与使用深度解析

《Java虚拟线程的创建与使用深度解析》虚拟线程是Java19中以预览特性形式引入,Java21起正式发布的轻量级线程,本文给大家介绍Java虚拟线程的创建与使用,感兴趣的朋友一起看看吧... 目录一、虚拟线程简介1.1 什么是虚拟线程?1.2 为什么需要虚拟线程?二、虚拟线程与平台线程对比代码对比示例:三

k8s按需创建PV和使用PVC详解

《k8s按需创建PV和使用PVC详解》Kubernetes中,PV和PVC用于管理持久存储,StorageClass实现动态PV分配,PVC声明存储需求并绑定PV,通过kubectl验证状态,注意回收... 目录1.按需创建 PV(使用 StorageClass)创建 StorageClass2.创建 PV

Linux创建服务使用systemctl管理详解

《Linux创建服务使用systemctl管理详解》文章指导在Linux中创建systemd服务,设置文件权限为所有者读写、其他只读,重新加载配置,启动服务并检查状态,确保服务正常运行,关键步骤包括权... 目录创建服务 /usr/lib/systemd/system/设置服务文件权限:所有者读写js,其他

idea+spring boot创建项目的搭建全过程

《idea+springboot创建项目的搭建全过程》SpringBoot是Spring社区发布的一个开源项目,旨在帮助开发者快速并且更简单的构建项目,:本文主要介绍idea+springb... 目录一.idea四种搭建方式1.Javaidea命名规范2JavaWebTomcat的安装一.明确tomcat

Git打标签从本地创建到远端推送的详细流程

《Git打标签从本地创建到远端推送的详细流程》在软件开发中,Git标签(Tag)是为发布版本、标记里程碑量身定制的“快照锚点”,它能永久记录项目历史中的关键节点,然而,仅创建本地标签往往不够,如何将其... 目录一、标签的两种“形态”二、本地创建与查看1. 打附注标http://www.chinasem.cn

深度解析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 多行数据