I was planning on doing a rolling restart of our CDH Manager managed Hadoop, HBase, ZK, and Yarn cluster when I came across this documentation: https://www.cloudera.com/documentation/enterprise/release-notes/topics/rn_consolidated_pcm.html#pcm_...
"Running CDH nodes within the same cluster on different JDK releases is not supported. JDK release across a cluster needs to match the patch level."
I was planning to do a jdk upgrade from jdk1.8.0_101 to jdk22.214.171.124, however does the above mean that I shouldnt do a rolling restart to get there? Or does that just mean i shouldnt leave them on different jdk versions longterm?
The JDK is considered part of the operating system and is not managed by Cloudera Manager. You will have to deploy the new JDK manually, via scripts, or an OS management software.
There is a way to have Cloudera managed services to only pick up the new JDK during a rolling restart and limit the window where different versions of the JDK will be in use:
Before deploying the new JDK, go to the Hosts configuration in Cloudera Manager and specify the "Java Home Directory". This will override the auto-detection logic that is normally used to identify the Java version.
Don't remove the prior version of the JDK while installing the new JDK on your hosts. Once you have deployed the new version of the JDK on all hosts either clear the "Java Home Directory" configuration or set it to your new version. You may now perform a rolling restart and the services will pick up the new JDK.
Denloe, thanks for the answer, I appreciate it.
You kind of answered my question but in a roundabout way. I was more asking with whether or not a cluster should run on different versions of the JDK for the amount of time a rolling restart takes.
i.e. is it safe to rolling restart a cluster to pick up different versions of the JDK?
The page I linked to indicates to not run a cluster with jdk versions, but from what you are saying it sounds like its okay to rolling restart upgrade it.
No you cannot, according to third bullet (from https://www.cloudera.com/documentation/enterprise/latest/topics/cdh_cm_upgrading_to_jdk8.html)
Warning: * Cloudera does not support upgrading to JDK 1.8 while upgrading to Cloudera Manager 5.3 or higher. The Cloudera Manager Server must be upgraded to 5.3 or higher before you start. * Cloudera does not support upgrading to JDK 1.8 while upgrading a cluster to CDH 5.3 or higher. The cluster must be running CDH 5.3 or higher before you start. * Cloudera does not support a rolling upgrade to JDK 1.8. You must shut down the entire cluster. * If you are upgrading from a lower major version of the JDK to JDK 1.8 or from JDK 1.6 to JDK 1.7, and you are using AES-256 bit encryption, you must install new encryption policy files. (In a Cloudera Manager deployment, you automatically install the policy files; for unmanaged deployments, install them manually.) See Using AES-256 Encryption. For both managed and unmanaged deployments, you must also ensure that the Java Truststores are retained during the upgrade. (See Recommended Keystore and Truststore Configuration.)