Member since
03-19-2018
3
Posts
0
Kudos Received
0
Solutions
03-21-2018
02:16 PM
@Jay Kumar SenSharma Nice article. There is small correction in API to fix stale configurations: "operation_level":"host_components" --> "operation_level":"host_component"
and
{"hosts_predicate":"HostRoles/stale_configs:true"} --> {"hosts_predicate":"HostRoles/stale_configs=true"}
Here is the corrected API: curl -u admin:admin -H "X-Requested-By: ambari" -X POST -d '{"RequestInfo":{"command":"RESTART","context":"Restart all required services","operation_level":"host_component"},"Requests/resource_filters":[{"hosts_predicate":"HostRoles/stale_configs=true"}]}' http://erie1.example.com:8080/api/v1/clusters/ErieCluster/requests
... View more