问题描述:
could only be written to 0 of the 1 minReplication nodes. There are 2 datanode(s) running and 2 node(s) are excluded in this operation.
解决方案:
原因有两种:
(1)namenode节点与其他datanode节点的VERSION中的clusterID的值不一致。
方法:删除所有节点(包括namenode)节点的hdfs-site.xml中dfs.namenode.name.dir中指定的文件夹即name和data文件夹,然后使用hadoop namenode –format命令重新格式化各个节点。
(2)有节点的防火墙未关闭
方法:使用命令:
systemctl stop firewalld.service