The entire CDH cluster, including Cloudera Data Science Workbench gateway hosts, must use the same version of JDK.
OpenJDK 8 is supported in Cloudera Enterprise 5.16.1 and higher. OpenJDK 7 is not supported.
For Red Hat/CentOS deployments in particular, Java Cryptography Extension (JCE) Unlimited Strength Jurisdiction must be enabled on the Cloudera Data Science Workbench gateway hosts.
For more specifics on the versions of Oracle JDK and OpenJDK recommended for CDH and Cloudera Manager clusters, and instructions on how to install the Java Cryptography Extension, see the Cloudera Product Compatibility Matrix.
JDK 8 Requirement for Spark 2.2 (or higher)
To upgrade your entire CDH cluster to JDK 1.8, see Upgrading to Oracle JDK 1.8.
JAVA_HOME to the
JDK 8 path in
cdsw.conf during the
installation process. If you need to modify
JAVA_HOME after the fact, restart the master and worker hosts to have the
changes go into effect.