Skip to content

Instantly share code, notes, and snippets.

@FantasyVR
Last active August 29, 2015 14:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FantasyVR/2d56bfc84ca557fce99d to your computer and use it in GitHub Desktop.
Save FantasyVR/2d56bfc84ca557fce99d to your computer and use it in GitHub Desktop.

#Hadoop安装过程

##Java Jdk的安装

  1. 根据Ubuntu下载对应的Jdk.看清Linux是64位还是32位
  2. 设置Jdk环境变量。
  sudo vi /etc/profile

在profile文件里添加如下代码设置环境变量

  export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_40
  export JRE_HOME=${JAVA_HOME}/jre
  export CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib
  export PATH=${JAVA_HOME}/bin:$PATH

运行

  source /etc/profile

3.检验Jdk是否安装成功

  java -version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment