Get the App
SLTechnology News&Howtos  ›  Internet Technology  › 

There is no namenode problem with master jps

Shulou Source: shulou.com Published: 2022-06-03 05:12:31 11月15日 Update

Execute the command / opt/modules/app/hadoop-2.7.4/sbin/start-all.sh on the primary node machine (equivalent to / opt/modules/app/hadoop-2.5.0/sbin/start-dfs.sh and / opt/modules/app/hadoop-2.5.0/sbin/start-yarn.sh)

Then jps found that there was no namenode and checked the logs log.

Found that namenode was not formatted

So execute the command to format the namenode node, and note that all the files under the original NameNode and DataNode must be deleted each time, otherwise an error will be reported. The directories where NameNode and DataNode are located are configured with hadoop.tmp.dir, dfs.namenode.name.dir and dfs.datanode.data.dir attributes in core-site.xml.

/ opt/modules/app/hadoop-2.7.4/sbin/start-all.sh

Then check to see if there are any new files in the tmp directory (my namenode has been reformatted several times before the new file appears), as shown in the figure

. . . Once upon a time, horses and carriages were slow, letters were far away, and there was only one person I could love all my life.

Tags: Format file command directory node lifetime personal letter attribute location log is in machine car and horse will report such as picture configuration problem Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux NVidia Xiaomi Shulou Information Redmi