<?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: how to stop all cloudera cluster  services command line in single command? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21709#M3737</link>
    <description>&lt;P&gt;You can use the &lt;A href="http://cloudera.github.io/cm_api/apidocs/v6/index.html" target="_self"&gt;API&lt;/A&gt;&amp;nbsp;to &lt;A href="http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_commands_stop.html" target="_self"&gt;stop&lt;/A&gt;&amp;nbsp;and then subsequently &lt;A href="http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_commands_start.html" target="_self"&gt;start&lt;/A&gt;&amp;nbsp;the cluster programatically if you'd like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The one question I have is why you feel it is required to restart all the services in between test runs. &amp;nbsp;Is it because you want to make sure heap is cleared and just assure there are no lingering file handles/etc. from the last job?&lt;/P&gt;</description>
    <pubDate>Mon, 17 Nov 2014 21:00:39 GMT</pubDate>
    <dc:creator>Clint</dc:creator>
    <dc:date>2014-11-17T21:00:39Z</dc:date>
    <item>
      <title>how to stop all cloudera cluster  services command line in single command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21677#M3736</link>
      <description>&lt;P&gt;how to stop all cloudera cluster services command line in single command?&lt;/P&gt;&lt;P&gt;We have CDH5.2 cluster setup using CM. We are assigned a task to write automation script to run TestDFSIO benchmark.&lt;/P&gt;&lt;P&gt;The tests needs to be run multiple time with pristine environment for diff. set of data size.&lt;/P&gt;&lt;P&gt;To achieve this I need to stop and start cluster each time before starting with TestDFSIO commands.&lt;/P&gt;&lt;P&gt;Want to know what is a single command using which I could stop all cluster services? It should be similar to what is called after clicking on "STOP" cluster and "START" cluster button on CM &amp;nbsp;home page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:13:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21677#M3736</guid>
      <dc:creator>sachin11mk</dc:creator>
      <dc:date>2022-09-16T09:13:13Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop all cloudera cluster  services command line in single command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21709#M3737</link>
      <description>&lt;P&gt;You can use the &lt;A href="http://cloudera.github.io/cm_api/apidocs/v6/index.html" target="_self"&gt;API&lt;/A&gt;&amp;nbsp;to &lt;A href="http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_commands_stop.html" target="_self"&gt;stop&lt;/A&gt;&amp;nbsp;and then subsequently &lt;A href="http://cloudera.github.io/cm_api/apidocs/v6/path__clusters_-clusterName-_commands_start.html" target="_self"&gt;start&lt;/A&gt;&amp;nbsp;the cluster programatically if you'd like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The one question I have is why you feel it is required to restart all the services in between test runs. &amp;nbsp;Is it because you want to make sure heap is cleared and just assure there are no lingering file handles/etc. from the last job?&lt;/P&gt;</description>
      <pubDate>Mon, 17 Nov 2014 21:00:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21709#M3737</guid>
      <dc:creator>Clint</dc:creator>
      <dc:date>2014-11-17T21:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop all cloudera cluster  services command line in single command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21737#M3738</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Clint.&lt;/P&gt;&lt;P&gt;I need to do this because I want each benchmark test to be run in pritine environment.&lt;/P&gt;</description>
      <pubDate>Tue, 18 Nov 2014 06:02:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21737#M3738</guid>
      <dc:creator>sachin11mk</dc:creator>
      <dc:date>2014-11-18T06:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop all cloudera cluster  services command line in single command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21738#M3739</link>
      <description>A restart in this case shouldn't be necessary, and can also mess up your benchmarking results if you aren't careful, as all services will be in a "cold start" state since all caches will be empty upon restart.</description>
      <pubDate>Tue, 18 Nov 2014 06:05:17 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/21738#M3739</guid>
      <dc:creator>Darren</dc:creator>
      <dc:date>2014-11-18T06:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop all cloudera cluster  services command line in single command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/42691#M3740</link>
      <description>&lt;P&gt;Is there any CLI command available too? for doing the Services management. Its good when need to manage services automated using Cloudera Manager.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jul 2016 06:59:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/42691#M3740</guid>
      <dc:creator>mkanchwala</dc:creator>
      <dc:date>2016-07-08T06:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: how to stop all cloudera cluster  services command line in single command?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/43487#M3741</link>
      <description>&lt;P&gt;You can stop the services with the following: (another option is just to use restart, I like stop, verify all processes are&amp;nbsp;gone/down then do the start when needed.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cloudera Manager Server: (stop agent, stop the server, stop database if using local postgres default )&lt;/P&gt;&lt;P&gt;sudo /sbin/service cloudera-scm-agent stop&lt;BR /&gt;sudo /sbin/service cloudera-scm-server stop&lt;BR /&gt;sudo /sbin/service cloudera-scm-server-db stop&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Do the reverse to start:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo /sbin/service cloudera-scm-server-db start&lt;BR /&gt;sudo /sbin/service cloudera-scm-server start&lt;BR /&gt;sudo /sbin/service cloudera-scm-agent start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;On the other nodes of&amp;nbsp; your servers in the cluster just stop/restart the agent.&lt;/P&gt;&lt;P&gt;sudo /sbin/service cloudera-scm-agent stop&lt;/P&gt;&lt;P&gt;sudo /sbin/service cloudera-scm-agent start&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;sudo /sbin/service cloudera-scm-agent restart&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You can do the following to get a status of the services as well.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;sudo /sbin/service cloudera-scm-server-db status&lt;BR /&gt;sudo /sbin/service cloudera-scm-server status&lt;BR /&gt;sudo /sbin/service cloudera-scm-agent status&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;May want to do a ps -ef |grep cloudera-scm to verify all processes are stopped on each server.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Aug 2016 13:58:11 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-stop-all-cloudera-cluster-services-command-line-in/m-p/43487#M3741</guid>
      <dc:creator>jspalding</dc:creator>
      <dc:date>2016-08-03T13:58:11Z</dc:date>
    </item>
  </channel>
</rss>

