Java Development Kit Installation

Some installation paths require that you install the Oracle Java Development Kit on cluster hosts before deploying Cloudera Manager, CDH, and managed services. To install the Oracle JDK, follow the instructions in Installing the Oracle JDK. The completed installation, or any already existing installation, must meet the following requirements.


  • The JDK must be 64-bit. Do not use a 32-bit JDK.
  • Install a supported version for CDH 5.
  • Install the same version of the Oracle JDK on each host.
  • Install the JDK in /usr/java/jdk-version.

Installing the Oracle JDK

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

  1. Download the .tar.gz file for one of the supported versions of the Oracle JDK from Java SE 7 Downloads or Java SE 6 Downloads. (These links are correct at the time of writing but change frequently.)
  2. Extract the JDK to /usr/java/jdk-version; for example /usr/java/jdk.1.7.0_nn, where 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