Directory /redeemer/hadoop-2.9.0/journaldata/ns1 is in an inconsistent state: Can't format the storage directory because the current directory is not empty.

具体错误如下,执行

hdfs namenode -format

时报错,网上也没有答案,误打误撞吧问题解决了,说ns1这个目录已存在,所以我找到了ns1这个目录,然后删掉,再次格式化

格式化之后还是一样的错误,然后仔细看两个错误的地址,是我的两个节点的地址,然后把所有报错的节点上的ns1这个目录全部删掉,再次格式化,成功!

猜你喜欢

转载自www.cnblogs.com/wangdaxianer/p/10470554.html