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重启集群,错误消失。<推荐>)

在这里插入图片描述

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