通过scp工具复制文件到CentOS中
hadoop-2.5.0-cdh5.3.6.tar.gz
jdk-7u67-linux-x64.tar.gz
zookeeper-3.4.5-cdh5.3.6.tar.gz
安装jdk
mkdir /opt/software/
tar zxvf jdk-7u67-linux-x64.tar.gz -C /opt/software/
设置环境变量
vi ~/.bash_profile
export JAVA_HOME=/opt/software/jdk1.7.0_67/
export CLASSPATH=.:JAVA_HOME/lib
export PATH=$JAVA_HOME/bin:$PATH
source ~/.bash_profile
验证版本
java -version
javac -version
jdk.png
安装和设置hadoop环境
tar -zxvf hadoop-2.5.0-cdh5.3.6.tar.gz -C /opt/software/
vim ~/.bash_profile
网友评论