This is the documentation for CDH 5.1.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 the .tar.gz file for 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. Extract the JDK to /usr/java/jdk-version; for example /usr/java/jdk.1.7.0_nn, where is a nn is a supported version.
  3. In /etc/default/bigtop-utils, set JAVA_HOME to the directory where the JDK is installed; for example:
    export JAVA_HOME=/usr/java/default
    
  4. Symbolically link the directory where the JDK is installed to /usr/java/default; for example:
    ln -s /usr/java/jdk.1.7.0_nn /usr/java/default
Page generated September 3, 2015.