[Spark Asia Pacific Research Institute Series] the path to spark practice-Chapter 1 building a spark cluster (step 5) (2)

Source: Internet
Author: User

Download the downloaded"Hadoop-2.2.0.tar.gz "Copy to"/Usr/local/hadoop/"directory and decompress it:


Modify the system configuration file ~ /Configure "hadoop_home" in the bashrc file and add the bin folder under "hadoop_home" to the path. After modification, run the source command to make the configuration take effect.

Next, create a folder in the hadoop directory using the following command:


\Next, modify the hadoop configuration file. First, go to the hadoop 2.2.0 configuration file area:


Step 1 modify the profile hadoop-env.sh and add "java_home" to it, as shown below:


Specify the "java_home" We have installed ":


Step 2 modify the configuration file yarn-env.sh and add "java_home" to it, as shown below:


Specify the "java_home" We have installed ":


Step 3 modify the configuration file mapred-env.sh and add "java_home" to it, as shown below:


Specify the "java_home" We have installed ":




[Spark Asia Pacific Research Institute Series] the path to spark practice-Chapter 1 building a spark cluster (step 5) (2)

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.