org.apache.hadoop.ipc.RemoteException(java.io.IOException): File /kms.sh._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.
- 解决方法一:namenode和datanode的防火墙都关闭。 #iptables -F,防火墙清空一下。
- 至于iptables和firewalld的区别请参看这个链接:https://blog.csdn.net/weixin_40658000/article/details/78708375
- 解决方法二:vim /hadoop路径/hdfs-site.sh
- dfs.name.dir 和 dfs.data.dir下面的路径要一致。
- 文章引自:http://blog.sina.com.cn/s/blog_61d8d9640102whof.html