Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Set Java Home using python client

avatar
New Contributor

Looking for a way to set custom java home property in CM using cm_api(v10) python client?

<master1>/7180/cmf/hardware/hosts/config, property is "Java Home Directory"

{"items":[{"method":"PUT","url":"/api/v8/cm/allHosts/config?message=Updated%20all%20hosts%20configurations.","body":{"items":[{"name":"java_home","value":"/opt/teradata/jvm64/jdk8"}]},"contentType":"application/json"}]}
1 ACCEPTED SOLUTION

avatar
Hi,

Similar to what's discussed here:
http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles

You can use the update_all_hosts_config method on the ClouderaManager object to set this config (in endpoints/cms.py).

Thanks,
Darren

View solution in original post

2 REPLIES 2

avatar
Hi,

Similar to what's discussed here:
http://cloudera.github.io/cm_api/docs/python-client/#configuring-services-and-roles

You can use the update_all_hosts_config method on the ClouderaManager object to set this config (in endpoints/cms.py).

Thanks,
Darren

avatar
New Contributor
Thanks Darren, have it working.