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

出现上述问题可能是格式化两次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

用jps命令看一下就可以看见datanode已经启动了

你可能感兴趣的:(解决There are 0 datanode(s) running and no node(s) are excluded in this operation.)