In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)05/31 Report--
Editor to share with you what to do if the namenode of hdfs cannot be started. I hope you will get something after reading this article. Let's discuss it together.
On the linux where hadoop2.6.0 is installed
Format hdfs file system hadoop namenode-format
Start the hdfs and MapReduce daemons (start-dfs.sh, start-yarn.sh)
Start operating in the hdfs file system
Due to accidental reasons, the machine restarted
When the hdfs and mapreduce daemons are started again, the hdfs file system becomes inoperable
Display: (ls: Call From ubuntu/127.0.1.1 to localhost:8020 failed on connection exception: java.net.ConnectException: deny connection; For more details see: http://wiki.apache.org/hadoop/ConnectionRefused)
The jps command shows that namenode is not started
There are some suggestions on the Internet: format the hdfs file system, although it can be reused, but the files previously operated are gone.
He looked for it on the Internet again and said
"
You have to reformat the namenode every time you turn it on.
In fact, the problem lies in the tmp file. The default tmp file will be emptied every time it is rebooted, and the formatting information of namenode will be lost at the same time.
So we have to reconfigure a directory of tmp files
First set up a hadoop_tmp directory under the home directory
Sudo mkdir ~ / hadoop_tmp
Then modify the core-site.xml file in the hadoop/conf directory and add the following node:
Hadoop.tmp.dir
/ home/chjzh/hadoop_tmp
A base for other temporary directories.
Note: my user is chjzh, so the directory is / home/chjzh/hadoop_tmp
OK, reformat Namenode
Hadoop namenode-format
Then start hadoop
Start-all.sh
Execute the JPS command and you can see NameNode.
"
After reading this article, I believe you have a certain understanding of "what if the namenode of hdfs cannot be started". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.