CentOS Configuration Hadoop Environment variables

Source: Internet
Author: User

Centos7 && hadoop-2.7.0.tar.gz

Hadoop is based on a Java environment, so you need to configure the JDK.
1. Configure the 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 os via SSH

Latest Hadoop:
http://hadoop.apache.org/#Download +hadoop
3, Decompression hadoop-2.7.0.tar.gz

tar -vxzf hadoop-2.7.0.tar.gz

4. Change hadoop-2.7.0 folder permissions

chmod777 hadoop-2.7.0

5. Add the Hadoop directory to the/etc/profile folder and enter the Hadoop directory to run the pwd command to get the Hadoop directory path

Add the following two sentences into the/etc/profile file

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

6. Execute the command to . /etc/profile make the Hadoop environment variable effective

7, the implementation of the hadoop version test environment has been successfully built

If this is the case, the Hadoop environment variable is built successfully!

CentOS Configuration Hadoop Environment variables

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.