Skip to content

Start Stop Restart JobTracker Role

gdgt edited this page Sep 30, 2014 · 2 revisions

Start/Stop/Restart JobTracker Role

# CM API endpoints
http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_services_-serviceName-_roleCommands_restart.html
http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_services_-serviceName-_roleCommands_start.html
http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_services_-serviceName-_roleCommands_stop.html
# Restart
curl -u 'admin:admin' -X POST -H "Content-Type:application/json" -d '{"items":["mapreduce-JOBTRACKER-0675ebab2b87e3869e0d90167cf4bf86"]}' 'http://cm.cloudera.com:7180/api/v6/clusters/Cluster%201/services/mapreduce/roleCommands/restart'
# Start
curl -u 'admin:admin' -X POST -H "Content-Type:application/json" -d '{"items":["mapreduce-JOBTRACKER-0675ebab2b87e3869e0d90167cf4bf86"]}' 'http://cm.cloudera.com:7180/api/v6/clusters/Cluster%201/services/mapreduce/roleCommands/start'
# Stop
curl -u 'admin:admin' -X POST -H "Content-Type:application/json" -d '{"items":["mapreduce-JOBTRACKER-0675ebab2b87e3869e0d90167cf4bf86"]}' 'http://cm.cloudera.com:7180/api/v6/clusters/Cluster%201/services/mapreduce/roleCommands/stop'