Ubuntu fails to log on properly due to an incorrect Ubuntu environment variable when Hadoop2.7.5 is installed,

Source: Internet
Author: User
Tags tmp folder

Ubuntu fails to log on properly due to an incorrect Ubuntu environment variable when Hadoop2.7.5 is installed,

When configuring java environment variables, it should be noted that if other environment variables are damaged, many commands may be unavailable, and desktop access may fail. A solution is provided to solve the problem of abnormal login caused by incorrect Ubuntu environment variables.

The pseudo-distribution configuration contains the following two segments: usr/local/hadoop/tmp/dfs/data and usr/local/hadoop/tmp/dfs/name, after extracting the Hadoop tar package, there is no dfs folder in usr/local/hadoop, and there is no data or name folder. Therefore, you must first create these empty folders and do not create any errors in the location. The permissions of the data and name folders are very important. You need to grant the write permission because some files will be automatically written to these folders when namenode-format is executed later, if the folder does not have the write permission, an error is reported. The content is probably cannot create directory. For the solution, see Hadoop formatting namenode error: java. io. IOException: Cannot create directory. Pay special attention to the data and name files !!!

If you find that the namenode or datanode is not displayed after jps execution, first make sure that your configuration file is correct and then you need to reformat the namenode, then first execute the stop-dfs.sh, delete all the files in the logs folder. Delete the entire tmp folder created earlier, and then re-execute the entire step.

The above are all my problems and solutions, which are valid for test.

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.