Manually Installing Oracle JDK 1.8
You can manually install Oracle JDK 1.8 on all managed hosts. If you are upgrading to any version of Cloudera Manager 5.x, you must use the following procedure:
- Download the
.tar.gz
file for one of the 64-bit versions of Oracle JDK 1.8 from Java SE 8 Downloads. (This link is correct at the time of writing, but can change.) - Perform the following steps on all hosts that you are upgrading:
- Log in to the host as
root
usingssh
. - Copy the downloaded
.tar.gz
file to the host. - Extract the JDK to the folder
/usr/java/jdk-version
. For example:tar xvfz /path/to/jdk-8u<update_version>-linux-x64.tar.gz -C /usr/java/
- Log in to the host as
- If you have configured TLS for Cloudera Manager (see Encrypting Data in Transit), copy the
jssecacerts
file from the previous JDK installation to the new JDK installation. This step is not required when using JDK 1.8.0_162 or greater. JDK 1.8.0_162 enables unlimited strength encryption by default.For example:cp previous_java_home/jre/lib/security/jssecacerts new_java_home/jre/lib/security
(Substitute previous_java_home and new_java_home with the paths to the JDK installations.) - Configure the location of the JDK on cluster hosts.
- Open the Cloudera Manager Admin Console.
- In the main navigation bar, click the Hosts tab. If you are configuring the JDK location on a specific host only, click the link for that host.
- Click the Configuration tab.
- Select .
- Set the Java Home Directory property to the custom location.
- Click Save Changes.
- On the Cloudera Manager Server host only (not required for other hosts):
- Open the file
/etc/default/cloudera-scm-server
in a text editor. - Edit the line that begins with
export JAVA_HOME
(if this line does not exist, add it) and change the path to the path of the new JDK (you can find the path under/usr/java
).For example: (RHEL and SLES)export JAVA_HOME="/usr/java/jdk1.8.0_141-cloudera"
For example: (Ubuntu)export JAVA_HOME="/usr/lib/jvm/java-8-oracle-cloudera"
- Save the file.
- Restart the
Server.
sudo systemctl restart cloudera-scm-server
- Open the file
- Restart the .
Show Me How
- Log in to the Admin Console.
- Select .
- Select .
- Restart all clusters:
- On the tab, click the Options menu to the right of the cluster name and select Restart.
- Click Restart that appears in the next screen to confirm. If you have
enabled high availability for HDFS, you can choose
Rolling Restart
instead to minimize cluster downtime. The Command Details window shows the
progress of stopping services.
When All services successfully started appears, the task is complete and you can close the Command Details window.
- Delete the files from your previous Java installation. If you do not delete these files, Cloudera Manager and other components may continue to use the old version of the JDK.