Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

How to Extract Configuration Changes from Ambari

Solved Go to solution
Highlighted

How to Extract Configuration Changes from Ambari

Hi,

I am looking to pull all configuration changes (The who, what and when for every change) made in Ambari (e.g. John Smith changed the Yarn min container size to 4gb on June 9th at 6:09am). The reason is that our compliance team want a report of all changes made to production systems.

My assumption would be using Ambari's Rest API - I just wasn't sure if someone had some examples on how best to do this.

Thanks,

Andrew

1 ACCEPTED SOLUTION

Accepted Solutions

Re: How to Extract Configuration Changes from Ambari

Contributor

@Andrew Watson

Ambari APIs seem like the right way to go about this. As for getting started, you could explore the output of:

http://<ambari_server>:8080/api/v1/clusters/<cluster_name>/configurations/service_config_versions

Some of the fields in the output of above call that could fit with your requirement:

"service_name" - Name of each service

"service_config_version_note" - List the comments made against each config change

"tag" - Version# associated with the service config changes

"user" - context under which config change was done

"stack_id" - stack version against which change was done (esp. useful if you want to track against upgrades too)

This link has some information -https://cwiki.apache.org/confluence/display/AMBARI/Service+Config+Versions+API+usage

Thanks,

Vivek

1 REPLY 1

Re: How to Extract Configuration Changes from Ambari

Contributor

@Andrew Watson

Ambari APIs seem like the right way to go about this. As for getting started, you could explore the output of:

http://<ambari_server>:8080/api/v1/clusters/<cluster_name>/configurations/service_config_versions

Some of the fields in the output of above call that could fit with your requirement:

"service_name" - Name of each service

"service_config_version_note" - List the comments made against each config change

"tag" - Version# associated with the service config changes

"user" - context under which config change was done

"stack_id" - stack version against which change was done (esp. useful if you want to track against upgrades too)

This link has some information -https://cwiki.apache.org/confluence/display/AMBARI/Service+Config+Versions+API+usage

Thanks,

Vivek

Don't have an account?
Coming from Hortonworks? Activate your account here