Step 2: Install Java Development Kit
To install the Oracle JDK, you can either install the version provided by Cloudera using Cloudera Manager, or a different version directly from Oracle.
- The JDK must be 64-bit. Do not use a 32-bit JDK.
- The installed JDK must be a supported version as documented in Java Requirements.
- The same version of the Oracle JDK must be installed on each cluster host.
- The JDK must be installed at /usr/java/jdk-version.
Installing the JDK Using Cloudera Manager
After completing Step 1: Configure a Repository for Cloudera Manager, you can install the Oracle JDK on the Cloudera Manager Server host using your package manager as follows:
- RHEL Compatible
sudo yum install oracle-j2sdk1.8
sudo zypper install oracle-j2sdk1.8
sudo apt-get install oracle-j2sdk1.8
You can use Cloudera Manager to install the JDK on the remaining cluster hosts in an upcoming step. Continue to Step 3: Install Cloudera Manager Server.
Installing the JDK Manually
The Oracle JDK installer is available both as an RPM-based installer for RPM-based systems, and as a .tar.gz file. These instructions are for the .tar.gz file.
- Download the .tar.gz file for one of the 64-bit supported versions of the Oracle JDK from Java SE 8 Downloads. (This link is correct at the time of writing, but can change.)
- Extract the JDK to /usr/java/jdk-version. For example:
tar xvfz /path/to/jdk-8u<update_version>-linux-x64.tar.gz -C /usr/java/
- Repeat this procedure on all cluster hosts. After you have finished, continue to Step 3: Install Cloudera Manager Server.