File /data/word.txt."/>
put: File /data/word.txt.
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.
发布评论