Configure Hadoop environment variables in Centos

Source: Internet
Author: User

Configure Hadoop environment variables in Centos

Centos7 & hadoop-2.7.0.tar.gz

Hadoop is based on the java environment, so jdk needs to be configured.
1. Configure jdk:
Http://blog.csdn.net/fantasydreams/article/details/46486275
2. Download The hadoop-2.7.0.tar.gz package and upload it to the centos operating system through ssh.

The latest hadoZ plugin? Http://www.bkjia.com/kf/ware/vc/ "target =" _ blank "class =" keylink "> vcM/mirror + CjOhor3i0bloYWRvb3AtMi43LjAudGFyLmd6PC9wPgoKPHByZSBjbGFzcz0 =" brush: java; ">tar -vxzf hadoop-2.7.0.tar.gz

4. Change hadoop-2.7.0 folder Permissions

chmod -R 777 hadoop-2.7.0

5. Add the hadoop directory to the/etc/profile folder and run the pwd command in the hadoop directory to obtain the hadoop directory path.

Add the following two sentences to the/etc/profile file:

export HADOOP_HOME=/root/hadoop-2.7.0export PATH=$HADOOP_HOME/bin:$PATH

6. Execute the command./etc/profile to make the hadoop environment variable take effect.

7. Have the hadoop version testing environment been successfully set up?

If the above words appear, the hadoop environment variable is successfully set up!

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.