THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
NOTE: This assumes the cluster is already installed.
Stopping/Starting a Service/Host Components.
1. Starting HDFS service
curl --user admin:$PASSWORD -i -h 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Start HDFS via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://CLUSTER_NAME:8080/api/v1/clusters/CLUSTER_NAME/services/HDFS
2. Stopping HDFS service
curl --user admin:$PASSWORD -i -h 'X-Requested-By: ambari' -X PUT -d '{"RequestInfo": {"context" :"Start HDFS via REST"}, "Body": {"ServiceInfo": {"state": "INSTALLED"}}}' http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/HDFS
3. Starting/Stopping individual daemons (example Ganglia Monitor / Datanodes).
curl --user admin:admin -i -h 'X-Requested-By: ambari' -X PUT -d '{"HostRoles": {"state": "STARTED"}}' http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/NEW_HOST_ADDED/host_components/GANGLIA_MONITOR curl --user admin:admin -i -h 'X-Requested-By: ambari' -X PUT -d '{"HostRoles": {"state": "INSTALLED"}}' http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/hosts/NEW_HOST_ADDED/host_components/DATANODE