報錯: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重啓集羣,錯誤消失。<推薦>)