<?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: Stopping Spark through Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126362#M17943</link>
    <description>&lt;P&gt;AFAIK there is no stop action for spark-client or any client for that matter. Client means set of libraries for using the associated service. &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;, please correct if I am missing something.&lt;/P&gt;</description>
    <pubDate>Fri, 05 Feb 2016 01:31:53 GMT</pubDate>
    <dc:creator>rahulpathak109</dc:creator>
    <dc:date>2016-02-05T01:31:53Z</dc:date>
    <item>
      <title>Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126353#M17934</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Just wondering what happens when Spark service is chosen on Ambari and is stopped? What service is stopped behind the scenes.To my understanding, when Spark is installed through Ambari, it installs Spark-client, thrift-server and history-server. When I stop Spark through Ambari, what action is invoked. Is it the spark-client that is stopped or all the three?&lt;/P&gt;&lt;P&gt;Alternatively, if I have to stop spark-client through CLI, how it need to be done?&lt;/P&gt;&lt;P&gt;Please correct me in case my understanding is wrong in any of the above.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:14:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126353#M17934</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-02-05T00:14:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126354#M17935</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; it stops all spark related services via Ambari. I wouldn't recommend stopping Ambari managed service via shell.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:16:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126354#M17935</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-05T00:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126355#M17936</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; Thanks for the quick response. I have two clients of Spark at the moment i.e. one is Ambari managed and the other is outside, manually setup. So, if I have to stop the manually managed one, how to do it?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:20:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126355#M17936</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-02-05T00:20:43Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126356#M17937</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369" target="_blank"&gt;@Greenhorn Techie&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;This is what it looks like&lt;/P&gt;&lt;P&gt;When you stop through ambari then it will stop the following/all components. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1804-screen-shot-2016-02-04-at-112144-am.png" style="width: 1202px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22652i2B1D15E801FD1D4D/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1804-screen-shot-2016-02-04-at-112144-am.png" alt="1804-screen-shot-2016-02-04-at-112144-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;If just want to start or stop particular component then you can click that particular service and take the action.&lt;/P&gt;&lt;P&gt;Click Spark Thrift Server and you can just start or stop that .&lt;/P&gt;&lt;P&gt;I clicked thrift server and I can start from there...&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1805-screen-shot-2016-02-04-at-112512-am.png" style="width: 1292px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22653iB2D052E0FFDD8088/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1805-screen-shot-2016-02-04-at-112512-am.png" alt="1805-screen-shot-2016-02-04-at-112512-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 10:06:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126356#M17937</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2019-08-19T10:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126357#M17938</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt;, Thanks. Please see my below follow-up query.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:29:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126357#M17938</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-02-05T00:29:02Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126358#M17939</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; when app is finished it will stop. If you have to kill it you can issue yarn job --kill command to force. In spark-shell you just exit and kills app.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:34:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126358#M17939</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-05T00:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126359#M17940</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; we only support Spark on yarn not in standalone&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:34:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126359#M17940</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-05T00:34:38Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126360#M17941</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt; Here is my confusion. If it stops immediately after app execution from a shell, why does it appear as running on Ambari, which can be stopped through UI. Are they two different things? spark-shell and spark-client? If so, in a manual installation, what need to be done to stop the spark-client, similar to the one done through Ambari. &lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:40:32 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126360#M17941</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-02-05T00:40:32Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126361#M17942</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Please see &lt;A target="_blank" href="http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.3.4/bk_installing_manually_book/content/ch_installing_spark_chapter.html"&gt;this&lt;/A&gt; and you can use that landing for all your future questions on manual install/use&lt;/P&gt;&lt;P&gt;Now, going back to your requirement...Please take few minutes to read this &lt;A href="http://spark.apache.org/docs/latest/spark-standalone.html"&gt;http://spark.apache.org/docs/latest/spark-standalone.html&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;CODE&gt;sbin/start-all.sh&lt;/CODE&gt; - Starts both a master and a number of slaves as described above.&lt;/LI&gt;&lt;LI&gt;&lt;CODE&gt;sbin/stop-master.sh&lt;/CODE&gt; - Stops the master that was started via the &lt;CODE&gt;bin/start-master.sh&lt;/CODE&gt; script.&lt;/LI&gt;&lt;LI&gt;&lt;CODE&gt;sbin/stop-slaves.sh&lt;/CODE&gt; - Stops all slave instances on the machines specified in the &lt;CODE&gt;conf/slaves&lt;/CODE&gt; file.&lt;/LI&gt;&lt;LI&gt;&lt;CODE&gt;sbin/stop-all.sh&lt;/CODE&gt; - Stops both the master and the slaves as described above.&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Fri, 05 Feb 2016 00:48:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126361#M17942</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-05T00:48:42Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126362#M17943</link>
      <description>&lt;P&gt;AFAIK there is no stop action for spark-client or any client for that matter. Client means set of libraries for using the associated service. &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;, please correct if I am missing something.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:31:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126362#M17943</guid>
      <dc:creator>rahulpathak109</dc:creator>
      <dc:date>2016-02-05T01:31:53Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126363#M17944</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; I believe these are applicable for spark standalone mode. Correct me if I'm wrong. However, I wanted to understand how it works in yarn mode. Specifically my question is the below: &lt;/P&gt;&lt;P&gt;@Artem mentioned that 'it' would stop immediately after app execution from a shell. My question is what is 'it' here? Is it spark client or spark driver or the app itself. Alternatively, on Ambari what is it shown that is running which can be stopped through UI. I presume its the spark-client. If so, what need to be done to stop the spark-client, similar to the one done through Ambari.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:33:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126363#M17944</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-02-05T01:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126364#M17945</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; spark client is client so there is no start and stop. &lt;/P&gt;&lt;P&gt;As you can see from my screeen shot , when you stop spark , it will stop all those components.&lt;/P&gt;&lt;P&gt;Now , for example when you run the following, it will launch a spark job and shutdown the job once it finishes.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Run on a YARN cluster
export HADOOP_CONF_DIR=XXX
./bin/spark-submit \
  --class org.apache.spark.examples.SparkPi \
  --master yarn-cluster \  # can also be `yarn-client` for client mode
  --executor-memory 20G \
  --num-executors 50 \
  /path/to/examples.jar \
  1000
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:38:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126364#M17945</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-05T01:38:51Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126365#M17946</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/140/nsabharwal.html" nodeid="140"&gt;@Neeraj Sabharwal&lt;/A&gt; Thanks. I agree with all the response given so far. Here is my understanding to summarise.&lt;/P&gt;&lt;P&gt;Only spark-thrift-server or spark-history-server can be stopped - either through Ambari or through CLI.&lt;/P&gt;&lt;P&gt;spark-client can only be installed (put the required libraries on the specified machine's directory) or uninstalled. There is nothing like stop or start. Same is the case through Ambari.&lt;/P&gt;&lt;P&gt;When using spark-shell or spark-submit, it would run interactively / submit the job to the cluster and once the application completes running, spark-driver program is ended.&lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:51:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126365#M17946</guid>
      <dc:creator>techiegreenhorn</dc:creator>
      <dc:date>2016-02-05T01:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Stopping Spark through Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126366#M17947</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2369/greenhorntechie.html" nodeid="2369"&gt;@Greenhorn Techie&lt;/A&gt; Thanks for being so specific ....Perfect!! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 05 Feb 2016 01:53:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Stopping-Spark-through-Ambari/m-p/126366#M17947</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-05T01:53:29Z</dc:date>
    </item>
  </channel>
</rss>

