Skip to content

Restart Cloudera Manager Service Role

gdgt edited this page Sep 30, 2014 · 2 revisions
# CM API endpoints
http://cloudera.github.io/cm_api/apidocs/v6/path__cm_service_roleCommands_restart.html
http://cloudera.github.io/cm_api/apidocs/v6/path__cm_service_roleCommands_start.html
http://cloudera.github.io/cm_api/apidocs/v6/path__cm_service_roleCommands_stop.html

example for Activity Monitor Management Service Role

# Restart
curl -u 'admin:admin' -X POST -H "Content-Type:application/json" -d '{"items": ["mgmt-ACTIVITYMONITOR-dae69bb962a2e73f2e045a1375521e7f"]}' 'http://cm.cloudera.com:7180/api/v6/cm/service/roleCommands/restart'
# Start
curl -u 'admin:admin' -X POST -H "Content-Type:application/json" -d '{"items": ["mgmt-ACTIVITYMONITOR-dae69bb962a2e73f2e045a1375521e7f"]}' 'http://cm.cloudera.com:7180/api/v6/cm/service/roleCommands/start'
# Stop
curl -u 'admin:admin' -X POST -H "Content-Type:application/json" -d '{"items": ["mgmt-ACTIVITYMONITOR-dae69bb962a2e73f2e045a1375521e7f"]}' 'http://cm.cloudera.com:7180/api/v6/cm/service/roleCommands/stop'