本文主要是介绍put: File /data/word.txt._COPYING_ could only be replicated to 0 nodes inste,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
put: File /data/word.txt.COPYING could only be replicated to 0 nodes inste
关于这个问题:org.apache.hadoop.ipc.RemoteException(java.io.IOExcption): File /input/data.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.
解决办法是:
把hadoop目录下的hdf文件夹给删除掉 也就是在配置时指定的木目录
在这里插入图片描述
也把tmp目录删除掉 然后再手动建立tmp
注意:把每个节点进行同样的操作
先启动dfs
再启动
yarn
尽可能不要start-all.sh
然后再看一下整个集群的存储状况
然后关闭DataNode 节点的防火墙
然后就无显示结果 一切正常
备注:其实关闭firewalld一般情况下就可以了或者iptables
这篇关于put: File /data/word.txt._COPYING_ could only be replicated to 0 nodes inste的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!