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 connection exception: java.net.ConnectException: Connection refused

错误解决方法:

1、先将/usr/local/hadoop/tmp/dfs文件夹整个删除掉(cd /usr/local/hadoop/tmp rm -rf dfs)

 

2、再将namenode进行格式化(hadoop namenode -format)

 


3、格式化成功后,最后重启hadoop(cd /usr/local/hadoop/bin start-all.sh)

 


4、重启完Hadoop之后,再重新连接hdfs即可(hadoop fs -ls hdfs://chaoren:9000/)。

 

 

posted @ 2017-03-29 12:18  ahu-lichang  阅读(631)  评论(0编辑  收藏  举报