Hadoop Elephant Safari 006- Installing the Hadoop environment
sinom
> Our hardware computer is running . windows7x64 windows7 installed vmware10 virtual machine, vmware centos6.5 operating system, centos jdk1.6.0_45 centos securecrsecurefx
Everything is available, Hadoop should be installed , but There are many versions of Hadoop, how do we choose?
From here we can see thathadoop-1.1.xthehbase0.94and thehbase0.96is supported so that we choose herehadoop1.1.xthe current highest version (2014-4-10), i.e.hadoop-1.1.2.tar.gz, this file can be downloaded at the address I provided below:
Official Address: http://archive.apache.org/dist/hadoop/core/hadoop-1.1.2/
1. upload the Hadoop file to CentOS
referring to the method described in the previous section, use the SecureFXPortable.exe in the CentOS Established in /usr/local folder that will hadoop-1.1.2.tar.gz uploaded to /usr/local in
2. Installing Hadoop
referring to the method described in the previous section, use the SecureCRTPortable.exe Login CentOS , into the /usr/local directory.
use the command " tar -xzvf hadoop-1.1.2.tar.gz" decompression hadoop-1.1.2.tar.gz
after the decompression is complete, we use the command " ls" to see the newly created directory hadoop-1.1.2
use the command " mv hadoop-1.1.2 Hadoop" rename the folder name to facilitate reference later
3. Configure the Hadoop Environment Variables
Next put Hadoop configured in the environment variable.
use the command " vi/etc/profile" Edit configuration file
use the shortcut key " i" Enter the file editing mode, the file finally added the following content.
Export JAVA_HOME=/USR/LOCAL/JDK
Export Hadoop_home=/usr/local/hadoop
Export path=.: $HADOOP _home/bin: $JAVA _home/bin: $PATH
use the shortcut key " ESC" exit file edit mode, use"Shift"and": "Key combination to enter command mode, enter command"Wq "Save and exit.
Here's an explanation: " Export "is a keyword that is used to set environment variables. We set up two environment variables, one is hadoop_home,
one is PATH . For a reference to an environment variable, use"$", a connection between multiple environment variables, using ":".
use the command " Source /etc/profile" makes the above configuration effective immediately
use the command " Hadoop version" detects if Hadoop is configured successfully ! " See the following tips, congratulations, the configuration is successful ~!~
Hadoop Elephant Tour 006-Install the Hadoop environment