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
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.