Copy the downloaded hadoop-2.2.0.tar.gz to the "/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)