The various components of Hadoop are working correctly when the Hadoop environment is built successfully. After rebooting several times Hadoop found Datanode not working properly, open the background of Hadoop http://localhost:50030 and http://localhost:50070 found lives nodes is 0.
To view log information for startup Datanode:
Org.apache.hadoop.ipc.Client:Retryingconnect to server:uec-fe/16.157.63.10:9000. Already tried 0 time (s).
To view log information for startup Namenode:
Java.io.IOException:File Xxxxxxxxx/jobtracker.info could is replicated to 0 nodes, instead of 1
The Hadoop.tmp.dir properties are also configured in Core-site.xml in the view:
<property>
<name>hadoop.tmp.dir</name>
<value>/home/hadoop/tmp</value>
<description>a base for other temporary directories.</description>
</property>
After the internet search tried a lot of ways is no use, and later read an article is not the issue of authority
sudo chown-r hadoop/home/hadoop/tmp
Then stop the Hadoop service and reformat (the general format will remind you to reformat the directory, show that it exists, delete the deleted directory, and then format it), and finally start the Hadoop service.
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.