Hadoop 啓動後使用JPS查看沒有DataNode

報錯:RemoteException(java.io.IOException): File /tmp/new/data.txt could only be replicated to 0 nodes instead of minReplication (=1). There are 0 datanode(s) running and no node(s) are excluded in this operation.

最簡便的方法:

參考:https://blog.csdn.net/dongzhongyan/article/details/59497653

3.刪除DataNode的所有資料(及將集羣中每個datanode的/hdfs/data/current中的VERSION刪掉,然後執行hadoop namenode -format重啓集羣,錯誤消失。<推薦>)

在這裏插入圖片描述

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章