After Hadoop is started, DataNode cannot be started, no error is reported

Insert picture description here
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
Insert picture description here
. 2. Open the VERSION file under NameNode, copy its cluster ID line, and paste it into VERSION under datanode. Specific steps are as follows:

Insert picture description here

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. Insert picture description hereInsert picture description here
Insert picture description here
We used jps to view the process again and found that there was already a DataNode in the process.

Insert picture description here
Welcome everyone to comment and leave a message, discuss and learn from each other!

Guess you like

Origin blog.csdn.net/qq_44176343/article/details/109584039