Support Questions
Find answers, ask questions, and share your expertise

Blueprint to start Ambari services automaticaly after reboot

Explorer

I found that it is possible to use some script to start all Ambari services after node's reboot (see https://community.hortonworks.com/articles/34747/ambari-admin-utility.html).

Also I found that from version 2.4 "recovery mode" from UI, so :

curl -u admin:admin -H "X-Requested-By: ambari" -X PUT http://c6401.ambari.apache.org:8080/api/v1/clusters/testcluster/components -d '{"RequestInfo": {"query": "ServiceComponentInfo/component_name.in(ZOOKEEPER_CLIENT,ZOOKEEPER_SERVER)"} , "ServiceComponentInfo" : {"recovery_enabled":"true"}}'

doesn't work.

It is possible to use Blueprint to make needed changes in configuration on existed cluster?

Could someone provide examples, please, if possible ?

Thanks in advance!

3 REPLIES 3

@Yurii Tymchii

Here is the correct API.

  1. curl -u admin:<password>-H "X-Requested-By: ambari"-X PUT 'http://localhost:8080/api/v1/clusters/<cluster_name>/components?ServiceComponentInfo/component_name.in(HBASE_REGIONSERVER)'-d '{"ServiceComponentInfo" : {"recovery_enabled":"true"}}'

You can find more information from

https://community.hortonworks.com/articles/71748/how-do-i-enable-automatic-restart-recovery-of-serv....

Explorer

Thank you for answer, but it don't work. I am getting after PUT:

{
  "status": 500,
  "message": "Server Error"
}

Explorer
  1. curl -u admin: -H "X-Requested-By: ambari"-X PUT 'http://localhost:8080/api/v1/clusters/ /components?ServiceComponentInfo/component_name.in(HBASE_REGIONSERVER)'-d '{"ServiceComponentInfo" : {"recovery_enabled":"true"}}'

{

  "status": 500,
  "message": "Server Error"
}