Datanode cannot start:
Cause of the problem:
When performing file system formatting, a current/version file is saved in the Namenode Data folder (that is, in the configuration file Dfs.name.dir the path to the local system), the Namespaceid is recorded, and the version of the formatted Namenode is identified. If we format namenode frequently, the Current/version file that is saved in Datanode (that is, the path to the local system in the configuration file) is just the Namenode ID that you saved when you first formatted it, Therefore, the ID inconsistency between Datanode and Namenode is caused.
Workaround:
Change the Namespaceid in the Current/version file in the configuration file Dfs.data.dir the path of the local system to the Dfs.name.dir in the local system's path current/ The Namespaceid in the version file.
Problem solving.
Pseudo-distributed under Datanode cannot start the problem