Options
- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Solved
Go to solution
Set Java Home using python client
Labels:
- Labels:
-
Cloudera Manager
New Contributor
Created on 12-02-2015 11:25 AM - edited 09-16-2022 02:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Guru
Created 12-02-2015 11:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
2 REPLIES 2
Guru
Created 12-02-2015 11:47 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
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
New Contributor
Created 12-02-2015 01:57 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Darren, have it working.
