具体错误如下,执行

hdfs namenode -format

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

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.

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

 

相关文章:

  • 2021-12-25
  • 2022-12-23
  • 2022-12-23
  • 2021-04-09
  • 2022-12-23
  • 2022-12-23
  • 2022-02-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-15
  • 2021-04-03
  • 2022-12-23
相关资源
相似解决方案