部署CM集群首次运行报错:Formatting the name directories of the current NameNode.

1. 报错提示

Formatting the name directories of the current NameNode. If the name directories are not empty, this is expected to fail.

2. 问题原因

之前的namenode格式化了,所以这次不能格式化,需要把原来格式化的删除。

3. 解决方法

1)在/dfs目录下有dn或者nn

[root@hadoop101 dfs]# ls /dfs/
nn snn

删除三台机器(所有机器)的/dfs目录

rm -rf /dfs/

2)然后点击retry即可

参考:https://blog.csdn.net/u010886217/article/details/85333016

猜你喜欢

转载自www.cnblogs.com/MWCloud/p/11366117.html