Hadoop error: Bad connection to FS. command aborted.
来源:互联网 发布:网络科学导论 pdf 编辑:程序博客网 时间:2024/05/23 13:46
运行
- hadoop fs -ls
时出现错误如下:
- root@ubuntu:/home/chenwq/hadoop/book/ch03/src/main/java# hadoop fs -ls
- 11/08/31 22:51:37 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
- 11/08/31 22:51:38 WARN conf.Configuration: mapred.task.id is deprecated. Instead, use mapreduce.task.attempt.id
- 11/08/31 22:51:39 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 0 time(s).
- 11/08/31 22:51:40 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 1 time(s).
- 11/08/31 22:51:41 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 2 time(s).
- 11/08/31 22:51:42 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 3 time(s).
- 11/08/31 22:51:43 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 4 time(s).
- 11/08/31 22:51:44 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 5 time(s).
- 11/08/31 22:51:45 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 6 time(s).
- 11/08/31 22:51:46 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 7 time(s).
- 11/08/31 22:51:47 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 8 time(s).
- 11/08/31 22:51:48 INFO ipc.Client: Retrying connect to server: localhost/127.0.0.1:8020. Already tried 9 time(s).
- Bad connection to FS. command aborted.
解决方案:
格式化namenode:
- hadoop namenode -format
重新启动start-all.sh,输入
- jps
查看后台进程
- root@ubuntu:/home/chenwq/hadoop/hadoop-0.21.0/bin# jps
- 8734 NameNode
- 8934 DataNode
- 9137 SecondaryNameNode
- 9479 Jps
此时namenode启动
运行
- hadoop fs -ls
出现:
- 11/08/31 23:09:37 INFO security.Groups: Group mapping impl=org.apache.hadoop.security.ShellBasedUnixGroupsMapping; cacheTimeout=300000
- 11/08/31 23:09:37 WARN conf.Configuration: mapred.task.id is deprecated. Instead, use mapreduce.task.attempt.id
- Found 1 items
- -rw-r--r-- 1 root supergroup 628 2011-08-31 23:01 /user/root/books/URLCat.java
- Hadoop error: Bad connection to FS. command aborted.
- hadoop Bad connection to FS. command aborted
- hadoop 出现Bad connection to FS. command aborted.
- hadoop只想 ./hadoop fs -ls / 命令出现Bad connection to FS. command aborted.
- hadoop输入命令报错Bad connection to FS. command aborted.
- hadoop创建两大错误:Bad connection to FS. command aborted. exception和Shutting down NameNode at hadoop
- Hadoop FS Shell Command
- MYSQL [Warning] Aborted connection 42355 to db
- hadoop fs -ls command not found
- [Warning] Aborted connection 11203 to db: 'ide' user: 'nuc' host: 'prd01.mb.com' (Got an error writi
- [Warning] Aborted connection 11203 to db: 'ide' user: 'nuc' host: 'prd01.mb.com' (Got an error writi
- Hadoop distcp command error
- java.net.SocketException: socket write error: Connection aborted by peer
- org.apache.hadoop.fs.ChecksumException: Checksum error
- org.apache.hadoop.fs.ChecksumException:Checksum error
- EXT3-fs error(device hda3) in start_transaction:Journal has aborted linux
- hadoop fs
- Hadoop windows 本地执行Mapreduce 报错 Error while running command to get file permissions
- vbs类的使用方法
- hibernate的优化-懒加载(lazy)----张国亮总结心得第二季
- 重置mysql root 密码
- 将date类型的数据转换成XMLGregorianCalendar
- STL笔记
- Hadoop error: Bad connection to FS. command aborted.
- QT4 Creator下的图形界面编程入门
- shell脚本的详细使用
- wamp环境下安装mongoDB并添加php的mongo扩展(PHP 5.3.1+Win7环境)
- CvArr、Mat、CvMat、IplImage、转换
- nodejs event模块
- C语言之strncat函数
- horizon连接数据库
- 用Jdk自带工具keytool生成受信任的证书