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

后端 未结 14 1848
清歌不尽
清歌不尽 2020-11-27 14:54

I have set up a multi node Hadoop Cluster. The NameNode and Secondary namenode runs on the same machine and the cluster has only one Datanode. All the nodes are configured o

14条回答
  •  北海茫月
    2020-11-27 15:27

    I have face same issue in my single node cluster.

    I have done below steps in order to resolve this issue:
    1. Checked datanode log under logs directory and found that namenode clusterId and datanode clusterId are different.
    2. Make empty datanode directory:
    rm -rvf /hadoop/hdfs/datanode/*
    3. stop-all.sh
    4. hdfs namenode -format
    5. start-all.sh
    6. jps
    27200 NodeManager
    26129 NameNode
    26595 SecondaryNameNode
    5539 GradleDaemon
    2355 Main
    2693 GradleDaemon
    27389 Jps
    26846 ResourceManager
    26334 DataNode

    This works for me.

提交回复
热议问题