1. 程式人生 > >Hadoop沒有啟動DataNode:There are 0 datanode(s) running and no node(s) are excluded in this operation

Hadoop沒有啟動DataNode:There are 0 datanode(s) running and no node(s) are excluded in this operation

轉自:https://blog.csdn.net/qiruiduni/article/details/50280943

刪除hdfs上的部分檔案,格式化hadoop namenode -format後,存在版本殘留的問題。於是,停掉hadoop,刪除dfs.namenode.name.dir設定的(file:///dfs/data)目錄下的current 資料夾,從節點相應目錄也要刪除,再次執行格式化,重啟hadoop,問題解決。 

經常會出現沒有啟動DataNode的情況。