After CentOS7 Hadoop installation requires JDK, so first download and install the JDK, during the installation of Hadoop
Download Hadoop
Use wget command network status # wget HTTP: // archive.apache.org/dist/hadoop/common/hadoop-2.4.1/hadoop-2.4.1.tar.gz
Packets to extract the tar / opt / Hadoop the directory
#解压 tar -zxvf hadoop-2.4.1.tar.gz -C /opt/Hadoop
Set Environment Variables
# Configuration environment variable vi ~ / .bash_profile
Was added at the end of the following configuration:
HADOOP_HOME=/opt/Hadoop export HADOOP_HOME PATH=$HADOOP_HOME/bin:$HADOOP_HOME/sbin:$PATH export PATH
Effective immediately
# Effective immediately environment variable
Source ~ / .bash_profile
Look at the directory structure within the Hadoop
Hadoop modify the default jdk
modify files in the directory #hadoop vi hadoop- env . SH
Replace the JDK own installation path
At this point the installation is complete!