Wednesday, August 28, 2013

Cloudera Manager – How to update your JAVA_HOME


By default, Cloudera Manger will install jdk1.6.0_31 (CM free edition 4.5.2) for you, and all role instances will use the jdk package that installed by CM. If you want configure role instances to use a different version of java, in my case, jdk1.7.0_21, here is what you need to do:

Log into the server, do
# vi /usr/lib64/cmf/service/common/cloudera-config.sh
Update
export JAVA_HOME=$candidate
to
export JAVA_HOME=/usr/lib/jvm/jdk1.7.0

Then restart the role instance, you have to repeat this on all nodes. If you have a midsize+ cluster, you might want to write a script to do it.

This is a quick way, I coun’t find any place in CM UI that allows you to set java package.

No comments: