JDK1.8安装
tar -xvf /data/hadoop/jdk-8u60-linux-x64.tar.gz -C /usr/software/
cd /usr/software/
mv jdk1.8.0_60/ java_1.8
chmod a+x java_1.8/
cd java_1.8/
vi /etc/profile
JAVA_HOME=/usr/software/java_1.8
CLASSPATH=.:$JAVA_HOME/lib.tools.jar
PATH=$JAVA_HOME/bin:$PATH
export JAVA_HOME CLASSPATH PATH
source /etc/profile
java -version