如果遇到
WARN hdfs.DataStreamer: DataStreamer Exception
org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /test/LICENSE.txt._COPYING_ 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.
遇到该问题,我们先查看防火墙是否关闭,若果是running,即未关闭,则执行systemctl stop firewalld.service,对防火墙关闭
【
CentOS7 默认使用的是firewall作为防火墙
查看防火墙状态
firewall-cmd --state
停止firewall
systemctl stop firewalld.service
开启firewall
firewall-cmd --state
禁止firewall 开机启动
systemctl disable firewalld.service
】