This is when we start Hadoop, and when we check it, we find that the DataNode cannot be started, but there is no error. So how to solve this problem?
Solution
1. First see if hdfs-site.xml is correct
. 2. Open the VERSION file under NameNode, copy its cluster ID line, and paste it into VERSION under datanode. Specific steps are as follows:
Now that the VERSION file is opened, we copy the clusterID line, then press the Esc button, then press ":", then type wq (save and exit), and press Enter.
We used jps to view the process again and found that there was already a DataNode in the process.
Welcome everyone to comment and leave a message, discuss and learn from each other!