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

今天特码的用hadoop提交job时候,发现莫名其妙出现这个错误。

最后发现其实就是datanode没有成功启动啊,玛德,jps虽然显示slave节点datanode进程存在,其实是处于假死状态。意思就是所有slave节点的datanode都启动失败。

原因如下:datanode VERSION文件中的clusterID与namenode VERSION文件中的clusterID不一样!!!

datanode VERSION文件的详细位置为/home/lemaker/data/hdfstmp/dfs/data/current/VERSION。

namenode VERSION文件的位置同理。

这里显示的是hadoop中hdfs-site.xml配置

将所有datanode VERSION文件中的clusterID改为与namenode VERSION文件中的clusterID一样,重新启动hdfs,即可解决此错误!!!

namemode中的clusterID图

猜你喜欢

转载自blog.csdn.net/sinat_38079265/article/details/121311622