Hadoop Pit--Unable to start Namenode

Source: Internet
Author: User
Keywords Hadoop unable to start namenode tmp file
Tags create default directory file hadoop home directory information start

Recently encountered a problem, the implementation of start-all.sh found JPS Namenode did not start

You have to reformat the namenode every time you turn it on.

In fact, the problem is in the TMP file, the default TMP file will be emptied every time it is restarted, while the Namenode formatting information will be lost

So we have to reconfigure a TMP file directory

First, create 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 nodes:

Hadoop.tmp.dir

/home/chjzh/hadoop_tmp

A base for the other temporary directories.

Note: My user is Chjzh so the directory is/home/chjzh/hadoop_tmp

OK, reformat Namenode

Hadoop Namenode-format

And then start Hadoop.

start-all.sh

Execute the JPS command to see Namenode.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.