Support Questions

Find answers, ask questions, and share your expertise

how to perform restart after we change around 50 parameters in ambari cluster

avatar

how to perform restart (on services/components) after we change around 50 parameters (blueprint parameters) in ambari cluster

we change around 50 values in ambari cluster ( with config.sh script )

after that we restart by API all relevant services/components ( by API down) , but after half hour we get fail on some services/components

so maybe the right thing is to perform restart after each value change ? ( in place to restart after all values are set ) ?

or maybe need to restart the services/components according to some priority/rules ?

example how we perform restart

curl -iv -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://$HOSTANAME:8080/api/v1/clusters/$CLUSTER_NAME/requests

Michael-Bronson
1 ACCEPTED SOLUTION

avatar
Contributor

you can restart after you set all parameters. but might be difficult to troubleshoot if some of the services fail to start.

View solution in original post

3 REPLIES 3

avatar
Contributor

@uri ben-ari you need to look at those services that are failing and look at the log file to understand why they are failing and fix those issues.

you can always revert back to the working config from the amabri UI.

you can also perform restart of all the components required from the Ambari UI under

Add Services -> Restart All affected

avatar

generic question , do we need to do restart after each parameter settings ? or we can do after we set all parameters?

Michael-Bronson

avatar
Contributor

you can restart after you set all parameters. but might be difficult to troubleshoot if some of the services fail to start.