Does anyone know how the cloudera-scm-agent service determines which services were running when it restarts after a system crash and reboot?
I would like to be able to prevent CDH services from automatically starting when the cloudera-scm-agent service starts after a system crash.
I've been looking at the log file for the cloudera-scm-agent but I didn't see any info level messages that would help me determine where the agent is getting information to determine which services were running before the crash.
I've also looked at tables in the database used by the cloudera-scm-server-db service but have not found anything obvious that appears to control which services are automatically started when the cloudera-scm-agent service starts (I thought this might be controlled by the 'configured_state' field in the services table but that does not seem to have any effect on which services are started).
Any help is greatly appreciated.
If you want to disable the automatic restart of cloudera services visit the configuration page of the service you'd like to manage, then
search for "Automatically Restart Process". You should see this option
for each role within the service, then uncheck it.