Foreword: The
namenode is formatted many times under hadoop, and the result is that the cluster cannot be up.
the reason
Solution:
Go to the directory where dfs is located
Then delete the following data. Restart the cluster after deleting it. (Note: Stop the previous cluster stop-all.sh before restarting)