- Subscribe to RSS Feed
- Mark Question as New
- Mark Question as Read
- Float this Question for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
How can I use the Ambari REST API to get active configuration for a particular service?
- Labels:
-
Apache Ambari
Created ‎02-18-2016 10:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
A previous question (https://community.hortonworks.com/questions/5482/how-to-fetch-service-level-configuration-using-res.html) detailed how to navigate to particular configurations and extract certain values. Is there a way I can use the REST API to get the configuration that's currently in effect?
For example, this would show me all of the possible hive-site configurations
/api/v1/clusters/cluster/configurations?type=hive-site
How can I programattically determine which one is currently active?
Created ‎02-19-2016 02:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Aaron Dossett the following api call will give you the current config
/api/v1/clusters/<name of cluster>/configurations/service_config_versions?service_name.in(HIVE)&is_current=true
Created ‎02-19-2016 02:15 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Aaron Dossett the following api call will give you the current config
/api/v1/clusters/<name of cluster>/configurations/service_config_versions?service_name.in(HIVE)&is_current=true
Created ‎02-19-2016 12:01 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
@Aaron Dossett: Please review below link.
https://cwiki.apache.org/confluence/display/AMBARI/Ambari+Metrics+API+specification
