Quantcast
Channel: Hortonworks » All Replies
Viewing all articles
Browse latest Browse all 3435

API call to start cluster

$
0
0

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?


Viewing all articles
Browse latest Browse all 3435

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>