Dear Ambari users group,

I'm using the Ambari REST API to configure Ambari. Some of the configuration 
elements have been configured by an earlier blueprint deployment, and now I'd 
like to "revert to default" on them. In the Ambari UI I can press the "restore 
to recommended" button next to the config items. Over the API, it looks like 
this uses /api/v1/stacks/xxx/versions/xxx/recommendations . I'm looking for 
examples/docs on using that API; or, is there another API call I can make to 
ask for the setting to go to 'default'? Sniffing what the Ambari UI does, the 
JSON that is posted to Ambari looks quite large and I've not managed to 
understand it yet.

https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations#Modifyconfigurations-Editconfigurationusingconfigs.sh
 doesn't have that option from what I can tell - the -a delete isn't quite the 
same, since that appears to remove the config key entirely (which then makes 
INSTALL tasks etc., fail if they expect such a key to exist.)

An example config element that I want to 'revert to default' is 
hive-interactive-env/content.

Many thanks for pointers,

 Nick

Reply via email to