I’m trying to start HDP 2.2 cluster in Ambari 1.7. To do that I’m doing the following steps:
1. register hosts
2. specify services and configs
3. request services install by PUT to ‘/api/v1/clusters/alhdp2/services?ServiceInfo/state=INIT’ with ‘{“RequestInfo” : { “context” : “Install all services” },”Body” : {“ServiceInfo”: {“state” : “INSTALLED”}}}’
4. request services start by PUT to ‘api/v1/clusters/alhdp2/services?ServiceInfo/state=INSTALLED’ with ‘{“RequestInfo” : { “context” : “Start all services” },”Body” : {“ServiceInfo”: {“state” : “STARTED”}}}’
In previous version of Ambari it was enough to start cluster. In Ambari 1.7 services start up finishes successfully (all tasks are in ‘COMPLETED’ state), but Ambari UI doesn’t recognize cluster as started. Ambari UI displays ‘Cluster creation in progress…’. Cluster details indicate that Cluster is still in “provisioning_state”:”INIT”. Am I missing some final step?