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
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.