Installing Oracle JDK for CDP Runtime using a tarball

This section is optional. The CDP Runtime requires a JDK to be installed on all cluster hosts prior to Cloudera Manager and Runtime installation. Cloudera Manager can automatically install an OpenJDK that has been pre-packaged by Cloudera. This OpenJDK provided by Cloudera may not be the latest version. If you do not want to use the OpenJDK provided by Cloudera, you can follow these instructions to install 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 8 Downloads, Java SE 7 Downloads or Java SE 6 Downloads.
  2. Extract the JDK to /usr/java/jdk-version; for example /usr/java/jdk.1.7.0_nn or /usr/java/jdk.1.8.0_nn, where nn is the supported version.
  3. Set JAVA_HOME to the directory where the JDK is installed. Add the following line to the specified files:
    export JAVA_HOME=/usr/java/jdk.1.7.0_nn
  4. Follow the instructions in Configuring a Custom Java Home Location. This change affects all CDH cluster processes and Cloudera Management Services in your cluster.
After you have finished, continue to Step 3: Install and configure Databases.