This is the documentation for CDH 5.0.x. Documentation for other versions is available at Cloudera Documentation.

Oracle JDK Installation

  Important:

The Oracle JDK installer is available both as an RPM-based installer for RPM-based systems, and as a binary installer for other systems.

On SLES 11 platforms, do not install or try to use the IBM Java version bundled with the SLES distribution; Hadoop will not run correctly with that version. Install the Oracle JDK by following the instructions below.

To install the Oracle JDK:

  1. Download one of the supported versions of the Oracle JDK from this page. (This link was correct at the time of writing, but the page is restructured frequently.)
  2. Install the Oracle JDK following the directions on the Java SE Downloads page.
  3. Install the JDK in /usr/java/jdk-version; for example /usr/java/jdk.1.7.0_nn, where nn is a .
  Note:

If for some reason you decide not to install the JDK in /usr/java/jdk-version, do the following:

  • As the root user, set JAVA_HOME to the directory where the JDK is installed; for example:
    # export JAVA_HOME=<jdk-install-dir>
    # export PATH=$JAVA_HOME/bin:$PATH
    where <jdk-install-dir> depends on where the JDK is actually installed.
  • On systems on which sudo clears or restricts environment variables, also add the following line to the /etc/sudoers file:
    Defaults env_keep+=JAVA_HOME
Page generated September 3, 2015.