HADOOP基於hortonworks的安裝---JAVA安裝

 本文的hadoop安裝是基於hortonworks的RPMS安裝html

文檔請見:http://docs.hortonworks.com/CURRENT/index.htmjava

http://www.oracle.com/technetwork/java/javase/downloads/jdk-6u31-download-1501634.htmllinux

下載java jdk-6u31-linux-x64.binoracle

#Java settingside

chmod u+x /home/jdk-6u31-linux-x64.bin oop

/home/jdk-6u31-linux-x64.bin -noregisterspa

mv  jdk1.6.0_31  /usr/htm

 

 

#Create symbolic links (symlinks) to the JDK.hadoop

 

mkdir /usr/java文檔

ln -s /usr/jdk1.6.0_31/ /usr/java/default

ln -s /usr/java/default/bin/java /usr/bin/java

 

#Set up your environment to define JAVA_HOME 

#to put the Java Virtual Machine and the Java compiler on your path.

 

echo "export JAVA_HOME=/usr/java/default"  >>/etc/profile

echo "export PATH=\$JAVA_HOME/bin:\$PATH"  >>/etc/profile

source  /etc/profile

相關文章
相關標籤/搜索