JDK Requirements

The entire CDH cluster, including the hosts used for Cloudera Data Science Workbench, should use the same version of JDK.

Supported CDSW configurations with JDK

  • The entire CDH cluster, including the hosts used for Cloudera Data Science Workbench, should use the same version of JDK. If required, the hosts used for CDSW can have two versions of JDK installed, such that the entire CDH cluster can use JDK 11 for all CDH roles, including gateway roles, and the hosts used for CDSW can additionally have JDK 8 installed, with JAVA_HOME set to JDK 8, to meet the requirements of CDSW.

  • Oracle JDK 7 is supported across all versions of Cloudera Manager 5 and CDH 5. Oracle JDK 8 is supported in Cloudera Enterprise 5.3.x and higher. Note the JDK 8 Requirement for Spark 2.2 (or higher).

  • 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)

CSD-based deployments:

To upgrade your entire CDH cluster to JDK 1.8, see Upgrading to Oracle JDK 1.8.

Package-based deployments:

Set 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.