<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Prevent automatic restart of CDH services after a system crash in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/359346#M238086</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99504"&gt;@PNW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find any solution for the issues described here. I need the same option.&lt;/P&gt;</description>
    <pubDate>Mon, 12 Dec 2022 10:47:05 GMT</pubDate>
    <dc:creator>frank_albers</dc:creator>
    <dc:date>2022-12-12T10:47:05Z</dc:date>
    <item>
      <title>Prevent automatic restart of CDH services after a system crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/350120#M235884</link>
      <description>&lt;P&gt;Does anyone know how the cloudera-scm-agent service determines which services were running when it restarts after a system crash and reboot?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;I would like to be able to prevent CDH services from automatically starting when the cloudera-scm-agent service starts after a system crash.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;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).&lt;BR /&gt;&lt;BR /&gt;Any help is greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Mon, 15 Aug 2022 22:11:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/350120#M235884</guid>
      <dc:creator>PNW</dc:creator>
      <dc:date>2022-08-15T22:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent automatic restart of CDH services after a system crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/350166#M235902</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99504"&gt;@PNW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to disable the automatic restart of cloudera services v&lt;SPAN&gt;isit the configuration page of the service you'd like to manage, then&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;search for "Automatically Restart Process". You should see this option&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;for each role within the service, then uncheck it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Chethan YM&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Aug 2022 15:25:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/350166#M235902</guid>
      <dc:creator>ChethanYM</dc:creator>
      <dc:date>2022-08-16T15:25:00Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent automatic restart of CDH services after a system crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/350182#M235911</link>
      <description>I don’t want to disable automatic restart of processes associated with CDH services under normal conditions. I only want to disable the automatic restart when cloudera-scm-agent starts if the host OS crashes and reboots.&lt;BR /&gt;I’ve disabled automatic startup of the cloudera-scm-server and cloudera-scm-agent services after a system boot but cloudera-scm-agent/supervisord still automatically start processes for CDH services that were running at the time of the system crash when I start the cloudera-scm-agent service.&lt;BR /&gt;I’m trying to determine how the cloudera-scm-agent service is determining the state of each service/service role at the time of the crash. I would expect the information to be derived from some data in the database used by the cloudera-scm-server-db service or in a file or files in the local file system, but I've been unable to find the location where this information is stored.&lt;BR /&gt;</description>
      <pubDate>Tue, 16 Aug 2022 18:28:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/350182#M235911</guid>
      <dc:creator>PNW</dc:creator>
      <dc:date>2022-08-16T18:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent automatic restart of CDH services after a system crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/359346#M238086</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99504"&gt;@PNW&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Did you find any solution for the issues described here. I need the same option.&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 10:47:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/359346#M238086</guid>
      <dc:creator>frank_albers</dc:creator>
      <dc:date>2022-12-12T10:47:05Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent automatic restart of CDH services after a system crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/359378#M238094</link>
      <description>&lt;P&gt;No, I was never able to determine how cloudera-scm-agent service or supervisord were determining which services were running at the time the system crashed.&amp;nbsp; I did extensive testing and thought I had found some fields in the database used by Cloudera Management Services that might have been used to determine which service roles were running at the time of the crash but when I tested changing these fields to indicate that the service roles were not running those service roles still were started when I started up the cloudera-scm-agent service. Need someone who is familiar with the source code to tell us how this mechanism works (how does the code determine which services were running).&lt;/P&gt;</description>
      <pubDate>Mon, 12 Dec 2022 20:41:22 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/359378#M238094</guid>
      <dc:creator>PNW</dc:creator>
      <dc:date>2022-12-12T20:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent automatic restart of CDH services after a system crash</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/360225#M238339</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/51087"&gt;@frank_albers&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/99504"&gt;@PNW&lt;/a&gt;&amp;nbsp;supervisor has a listener process which keeps monitoring the CDH processes. For any service with auto restart configured if faces an unexpected exit , supervisord will restart the process.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Agent looks for unexpected exits in the notifications it receives via the&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;supervisor listener and forwards relevant event info to the associated&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;role's monitor to update its unexpected exit state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;A normal agent restart does not affect supervisord process, it continues to be running and managing CDH processes. A hard stop/restart on agent will affect supervisord and in turn kill all managed CDH processes.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps,&lt;BR /&gt;Paras&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;Was your question answered? Make sure to mark the answer as the accepted solution.&lt;/I&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;I&gt;If you find a reply useful, say thanks by clicking on the thumbs up button.&lt;/I&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 11:50:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Prevent-automatic-restart-of-CDH-services-after-a-system/m-p/360225#M238339</guid>
      <dc:creator>paras</dc:creator>
      <dc:date>2022-12-29T11:50:49Z</dc:date>
    </item>
  </channel>
</rss>

