Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

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.