Skip to content

Instantly share code, notes, and snippets.

@seanorama
Created February 19, 2015 15:15
Show Gist options
  • Save seanorama/ee253623e56837444277 to your computer and use it in GitHub Desktop.
Save seanorama/ee253623e56837444277 to your computer and use it in GitHub Desktop.

Using the Sandbox

Various notes for things to do after the Sandbox is up

/root/start_ambari.sh
/root/start_solr.sh

# these services are never started after first boot:
curl -u admin:admin -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo": {"context" :"Start Flume via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://127.0.0.1:8080/api/v1/clusters/Sandbox/services/FLUME
curl -u admin:admin -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo": {"context" :"Start HBase via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://127.0.0.1:8080/api/v1/clusters/Sandbox/services/HBASE
curl -u admin:admin -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo": {"context" :"Start Storm via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://127.0.0.1:8080/api/v1/clusters/Sandbox/services/STORM
curl -u admin:admin -H "X-Requested-By:ambari" -i -X PUT -d '{"RequestInfo": {"context" :"Start Kafka via REST"}, "Body": {"ServiceInfo": {"state": "STARTED"}}}' http://127.0.0.1:8080/api/v1/clusters/Sandbox/services/KAFKA
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment