there are 2 possible solutions to solve
First of all:
The cluster ID of the nodes and the data does not match, do not forget to make them the same.
In the node name, change the ur cluster id in the file located in:
$ nano HADOOP_FILE_SYSTEM/namenode/current/VERSION
In the node data, the cluster identifier is stored in the file:
$ nano HADOOP_FILE_SYSTEM/datanode/current/VERSION
Second:
Format namenode:
Hadoop 1.x: $ hadoop namenode -format
Hadoop 2.x: $ hdfs namenode -format
source
share