Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on 03-12-2018 05:31 AM - edited 08-18-2019 02:44 AM
how to disable service auto start by API as the following
how to enable service auto start by API as the following
Created 03-12-2018 05:39 AM
Do you mean something similar to the one which is mentioned here:
https://community.hortonworks.com/questions/136769/auto-start-services-from-disable-to-enable.html
Created 03-12-2018 05:39 AM
Do you mean something similar to the one which is mentioned here:
https://community.hortonworks.com/questions/136769/auto-start-services-from-disable-to-enable.html
Created 03-12-2018 05:47 AM
the api from from this link answer about to enable all services , but what we need is only to enable / disable the auto start services , as described in the pictures ( like click on button to disable (pic1) ,and click on the button to enable (pic2) )
Created 03-12-2018 05:59 AM
Through API call it will be bit complex because ambari client needs to send a very huge Payload to make that change.
However the easiest option will be to use the following approach from ambari server host:
To Enable Auto start Services
# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=TestCluster --config-type=cluster-env -k "recovery_enabled" -v "true"
.
To Disable Auto start Services
# /var/lib/ambari-server/resources/scripts/configs.py --user=admin --password=admin --port=8080 --action=set --host=localhost --cluster=TestCluster --config-type=cluster-env -k "recovery_enabled" -v "false"
.
Please change the Cluster name "TestCluster" and ambari credentials in the above script .
Above script needs to be executed from ambari server host as it has the "config.py" file.
Created 03-12-2018 06:06 AM
@Jay thank you so much , regrading the cluster size ( https://community.hortonworks.com/questions/177371/cant-start-ambari-collector.html ) , dose cluster size mean - Number of workers machines ?