put: File /data/word.txt._COPYING_ could only be replicated to 0 nodes inste

版权声明:@抛物线 https://blog.csdn.net/qq_28513801/article/details/89477620

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

猜你喜欢

转载自blog.csdn.net/qq_28513801/article/details/89477620