我的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即可

hadoop创建两大错误:Bad connection to FS. command aborted. exception和Shutting down NameNod...的更多相关文章

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

    1.问题目录表: Error代码   failed on connection exception: java.net.ConnectException: Connection refused 3.  ...

  2. Bad connection to FS. command aborted. exception: Call to chaoren/192.168.80.100:9000 failed on connection exception: java.net.ConnectException: Connection refused

    Bad connection to FS. command aborted. exception: Call to chaoren/192.168.80.100:9000 failed on conn ...

  3. hadoop的两大核心之一:HDFS总结

    什么是HDFS? hadoop distributed file system(hadoop分布式文件系统) 是一种允许文件通过网络在多台主机上分享的文件系统, 可让多机器上的多用户分享文件和存储空间 ...

  4. Python 数据库的Connection、Cursor两大对象

    Python 数据库的Connection.Cursor两大对象 pymysql是Python中操作MySQL的模块,其使用方法和py2的MySQLdb几乎相同. Python 数据库图解流程 Con ...

  5. hadoop两大核心之一:MapReduce总结

    MapReduce是一种分布式计算模型,由Google提出,主要用于搜索领域,MapReduce程序 本质上是并行运行的,因此可以解决海量数据的计算问题. MapReduce任务过程被分为两个处理阶段 ...

  6. Go 语言的下一个大版本:Go 2.0 被安排上了(全面兼容1.X,改进错误处理和泛型这两大主题)

    今年 8 月 Go 开发团队公布了 Go 2.0 的设计草案,包括错误处理和泛型这两大主题.现在备受瞩目的 Go 2.0 又有了新动向 —— 昨日 Go 开发团队在其官方博客表示,Go 2 已经被安排 ...

  7. 敏捷数据科学:用Hadoop创建数据分析应用

    敏捷数据科学:用Hadoop创建数据分析应用(数据分析最佳实践入门敏捷大数据首作分步骤|全流程演示思路.工具与方法) [美]Russell Jurney(拉塞尔·朱尔尼) 著   冯文中 朱洪波 译 ...

  8. Java轻量级业务层框架Spring两大核心IOC和AOP原理

    IoC(Inversion of Control): IOC的基本概念是:不创建对象,但是描述创建它们的方式.在代码中不直接与对象和服务连接,但在配置文件中描述哪一个组件需要哪一项服务.容器负责将这些 ...

  9. LabVIEW新手5大错误

    虽然NI LabVIEW软件长期以来一直帮助工程师和科学家们快速开发功能测量和控制应用,但不是所有的新用户都会遵循LabVIEW编程的最佳方法. LabVIEW图形化编程比较独特,因为只需看一眼用户的 ...

随机推荐

  1. C#_抓包HttpWebRequest跟HttpWebResponse

    1.第一招,根据URL地址获取网页信息  这招是入门第一式, 特点: 1.最简单最直观的一种,入门课程. 2.适应于明文,无需登录,无需任何验证就可以进入的页面. 3.获取的数据类型为HTML文档. ...

  2. python语法笔记(七)

    python标准库 Python有一套很有用的标准库(standard library).标准库会随着Python解释器,一起安装在你的电脑中的.它是Python的一个组成部分.这些标准库是Pytho ...

  3. MYSQL 【汇总数据】 【分组数据】 学习记录

    分组数据 1,创建分组:

  4. vbox下android分辨率设置

    VBoxManage setextradata "android" "CustomVideoMode1" "1280x800x16" 1.  ...

  5. 【bzoj3160】【xsy1726】万径人踪灭

    [bzoj3160]万径人踪灭 题意 给定一个由'a'和'b'构成的字符串,求不连续回文子序列的个数. \(n\leq 100000\) 分析 还是蛮不错的. 这道题基本上是自己想到的. 除了没有利用 ...

  6. 理解Cookie和Session机制

    转载: 理解Cookie和Session机制 会话(Session)跟踪是Web程序中常用的技术,用来跟踪用户的整个会话.常用的会话跟踪技术是Cookie与Session.Cookie通过在客户端记录 ...

  7. 【MYSQL】update/delete/select语句中的子查询

    update或delete语句里含有子查询时,子查询里的表不能在update或是delete语句中,如含有运行时会报错:但select语句里含有子查询时,子查询里的表可以在select语句中. 如:把 ...

  8. 呆呆的io流输入输出的一些基础

    关于io流的File类,下面来码一些基础属性: 文件的属性: /* public String getName() 获取文件的名字 public boolean canRead() 判断文件是否可以读 ...

  9. nyoj------布线问题(kruscal+求最小值)

    布线问题 时间限制:1000 ms  |  内存限制:65535 KB 难度:4   描述 南阳理工学院要进行用电线路改造,现在校长要求设计师设计出一种布线方式,该布线方式需要满足以下条件:1.把所有 ...

  10. 最小生成树练习1(克鲁斯卡尔算法Kruskal)

    今天刷一下水题练手入门,明天继续. poj1861 Network(最小生成树)新手入门题. 题意:输出连接方案中最长的单根网线长度(必须使这个值是所有方案中最小的),然后输出方案. 题解:本题没有直 ...