HDFS 报错: There are 0 datanode(s) running and 0 node(s) are excluded in this operation.

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了HDFS 报错: There are 0 datanode(s) running and 0 node(s) are excluded in this operation.相关的知识,希望对你有一定的参考价值。

参考技术A 出现上述问题可能是格式化两次hadoop,导致没有datanode

解决方法1:重启linux,再使用start-dfs.sh和start-yarn.sh 重启一下hadoop

解决办法2:找到hadoop安装目录下 hadoop-2.4.1/data/dfs/data里面的current文件夹删除

然后从新执行一下 hadoop namenode -format

再使用start-dfs.sh和start-yarn.sh 重启一下hadoop

hadoop报错:There are 653 missing blocks. The following files may be corrupted

hadoop报错:There are 653 missing blocks. The following files may be corrupted

遇到这个问题的解决办法:

查看缺失的文件:hdfs fsck /
删除缺失的文件:hdfs fsck -delete
注意:这里的删除是全部删除,也可以不全部删除
遵循这个原则即可:hdfs fsck 路径 -delete

以上是关于HDFS 报错: There are 0 datanode(s) running and 0 node(s) are excluded in this operation.的主要内容,如果未能解决你的问题,请参考以下文章

There are 0 datanode(s) running and no node(s) are excluded in this operation.

Spirng 循环依赖报错:Is there an unresolvable circular reference?

CentOS7.x 报错 There are no enabled repos.

Sublime Text3使用Package Control 报错There Are No Packages Available For Installation

hadoop报错:There are 653 missing blocks. The following files may be corrupted

hadoop报错:There are 653 missing blocks. The following files may be corrupted