Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Bug report - CDH 5.11 - Cloudera Management Service not using JDK1.8

Bug report - CDH 5.11 - Cloudera Management Service not using JDK1.8

New Contributor

We have CDH 5.11, and because we need to install Spark 2.2 which requires JDK1.8, we installed JDK1.8 and switched CDH to use JDK 1.8 instead of JDK 1.7 as per instruction at


However, All services are using JDK 1.8 except that CM management services still use JDK1.7 after changes as per the instruction above. It's found that there is a bug with the script /usr/lib64/cmf/service/common/ which detects JAVA_HOME for CM management services.


The script, unlike /usr/lib/bigtop-utils/bigtop-detect-javahome script, doesn't detect and source /etc/default/bigtop-utils settings file when user overrides JAVA_HOME. And the script prefers JDK 1.7 over JDK 1.8.


The bug should be resolved by changing the script  /usr/lib64/cmf/service/common/ to behave similar to /usr/lib/bigtop-utils/bigtop-detect-javahome which checks for setting file /etc/default/bigtop-utils, and use user settings which JAVA_HOME is manually configured.


It would be good also to include instruction/link to restart all CM services and CDH services once changing JDK version.