<?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 Linux script to stop/start cluster services in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327863#M230171</link>
    <description>&lt;P&gt;Hola,&lt;/P&gt;&lt;P&gt;i need stop/start the roles and CM services many time for patching the servers. Is there a solution by one script?&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 14:44:05 GMT</pubDate>
    <dc:creator>CajamarBBDD</dc:creator>
    <dc:date>2022-09-16T14:44:05Z</dc:date>
    <item>
      <title>Linux script to stop/start cluster services</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327863#M230171</link>
      <description>&lt;P&gt;Hola,&lt;/P&gt;&lt;P&gt;i need stop/start the roles and CM services many time for patching the servers. Is there a solution by one script?&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 14:44:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327863#M230171</guid>
      <dc:creator>CajamarBBDD</dc:creator>
      <dc:date>2022-09-16T14:44:05Z</dc:date>
    </item>
    <item>
      <title>Re: Linux script to stop/start cluster services</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327869#M230176</link>
      <description>&lt;H4&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;Starting Agents&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;&lt;H4&gt;&lt;STRONG&gt;&lt;FONT size="3"&gt;To start Agents, the&amp;nbsp;supervisord&amp;nbsp;process, and&amp;nbsp;all managed&amp;nbsp;service processes, use the following command:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/H4&gt;&lt;P&gt;&lt;STRONG&gt;Start&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;sudo service cloudera-scm-agent start&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Stop&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;sudo service cloudera-scm-agent stop&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Restart&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;sudo service cloudera-scm-agent restart&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;STRONG&gt;**&lt;/STRONG&gt;Hard Stopping and Restarting Agents**&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;To stop or restart Agents, the supervisord process, and&amp;nbsp;all managed service processes, use one of the following commands:&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;Note:&amp;nbsp;The&amp;nbsp;hard_stop&amp;nbsp;and hard_restart&amp;nbsp;commands kill all running managed service processes on the host(s) where the command is run.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1)Hard Stop&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For RHEL 7, SLES 12, Debian 8, Ubuntu 16.04:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;sudo systemctl stop cloudera-scm-supervisord.service&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu 12.04, 14.04:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;&lt;SPAN&gt;&lt;SPAN&gt;sudo service cloudera-scm-agent hard_stop&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;2)Hard Restart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#000000"&gt;For RHEL 7, SLES 12, Debian 8, Ubuntu 16.04 and higher:&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#008000"&gt;sudo systemctl stop cloudera-scm-supervisord.service&lt;/FONT&gt;&lt;FONT color="#008000"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;FONT color="#008000"&gt;sudo systemctl start cloudera-scm-agent&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;For RHEL 5 or 6, SLES 11, Debian 6 or 7, Ubuntu 12.04, 14.04:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;FONT color="#008000"&gt;sudo service cloudera-scm-agent hard_restart&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;3)Checking Agent Status&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;DIV class="p"&gt;&lt;STRONG&gt;To check the status of the Agent process, use the command:&lt;/STRONG&gt;&lt;/DIV&gt;&lt;DIV class="p"&gt;&lt;FONT color="#008000"&gt;sudo service cloudera-scm-agent status&lt;/FONT&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 18 Oct 2021 10:34:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327869#M230176</guid>
      <dc:creator>Faizan_Ali</dc:creator>
      <dc:date>2021-10-18T10:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Linux script to stop/start cluster services</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327870#M230177</link>
      <description>&lt;P&gt;thank you very much!&lt;/P&gt;&lt;P&gt;one question more,&lt;/P&gt;&lt;P&gt;if I have to stop before the roles for each worker and manager node (with this order):&lt;/P&gt;&lt;P&gt;Cloudera Management Service&lt;/P&gt;&lt;P&gt;ZooKeeper&lt;/P&gt;&lt;P&gt;HDFS&lt;/P&gt;&lt;P&gt;Solr&lt;/P&gt;&lt;P&gt;Flume&lt;/P&gt;&lt;P&gt;HBase&lt;/P&gt;&lt;P&gt;Key-Value Store Indexer&lt;/P&gt;&lt;P&gt;MapReduce or YARN&lt;/P&gt;&lt;P&gt;Hive&lt;/P&gt;&lt;P&gt;Impala&lt;/P&gt;&lt;P&gt;Oozie&lt;/P&gt;&lt;P&gt;Sqoop&lt;/P&gt;&lt;P&gt;Hue&amp;nbsp;&amp;nbsp;&lt;BR /&gt;HOw is should be with line comands?&lt;BR /&gt;THANKU!&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 10:44:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327870#M230177</guid>
      <dc:creator>CajamarBBDD</dc:creator>
      <dc:date>2021-10-18T10:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Linux script to stop/start cluster services</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327974#M230191</link>
      <description>&lt;P&gt;Starting/stopping cluster or services (and many other actions) will be done in Cloudera Manager UI or using the&amp;nbsp;&lt;A href="https://docs.cloudera.com/documentation/enterprise/6/6.3/topics/cm_intro_api.html" target="_blank" rel="noopener"&gt;Cloudera Manager API&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The CM API can be used from curl commands in a shell script or when using the bindings from a Python script or Java code.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 06:54:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/327974#M230191</guid>
      <dc:creator>gzigldrum</dc:creator>
      <dc:date>2021-10-19T06:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: Linux script to stop/start cluster services</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/328523#M230272</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17817"&gt;@CajamarBBDD&lt;/a&gt;&amp;nbsp;Has any of the replies helped resolve your issue? If so, please mark the appropriate reply as the solution, as it will make it easier for others to find the answer in the future.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 21 Oct 2021 17:32:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Linux-script-to-stop-start-cluster-services/m-p/328523#M230272</guid>
      <dc:creator>VidyaSargur</dc:creator>
      <dc:date>2021-10-21T17:32:06Z</dc:date>
    </item>
  </channel>
</rss>

