hadoop部署错误

执行./hadoop fs -ls /

出现:Bad connection to FS. command aborted. exception: Call to localhost/127.0.0.1:8020 failed on connection exception: java.net.ConnectException: Connection refused错误

解决方法:

$ jps

3096 JobTracker

5400 Jps//没有namenode

 

$ ./stop-all.sh       
$ ./hadoop namenode -format
$ ./start-all.sh 

你可能感兴趣的:(hadoop)