Starting, Stopping, and Restarting Cloudera Manager Agents
To start stopped Agents, the supervisord process, and all processes managed by the supervisord process, use one of the following commands:
- Start
$ sudo service cloudera-scm-agent start
- Clean Start
$ sudo service cloudera-scm-agent clean_start
The directory /var/run/cloudera-scm-agent is completely cleaned out; all files and subdirectories are removed and then the start command is executed. /var/run/cloudera-scm-agent contains on-disk running Agent state. Some Agent state is left behind in /var/lib/cloudera-scm-agent, but you shouldn't delete that. For further information, see Server and Client Configuration and Process Management.
To stop or restart Agents while leaving the processes they manage running, use one of the following commands:
- Stop
$ sudo service cloudera-scm-agent stop
- Restart
$ sudo service cloudera-scm-agent restart
To stop or restart Agents, the supervisord process, and all processes managed by the supervisord process, use one of the following commands:
- Hard Stop
$ sudo service cloudera-scm-agent hard_stop
- Hard Restart
$ sudo service cloudera-scm-agent hard_restart
Hard restart is useful for the following situations:- You're upgrading Cloudera Manager and the supervisord code has changed between your current version and the new one. To properly do this upgrade you'll need to restart supervisor too.
- supervisord is hung and needs to be restarted.
- You want to clear out all running state pertaining to Cloudera Manager and managed services.
- Clean Restart
$ sudo service cloudera-scm-agent clean_restart
Runs hard_stop followed by clean_start.
Warning: Running hard_stop, clean_restart, or hard_restart kills all running managed services on the host(s) where the command is run.
To check the status of the Agent process, use the command:
$ sudo service cloudera-scm-agent status
<< Moving the Cloudera Manager Server to a New Host | Configuring Cloudera Manager Agents >> | |