<?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: Spark gateway not starting in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49021#M50584</link>
    <description>Thanks a ton! marking it as solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I have another question, if you could help. This is why I need spark &lt;A href="https://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/Run-SparkR-or-R-package-on-my-Cloudera-5-9-Spark/m-p/49019#U49019" target="_blank"&gt;https://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/Run-SparkR-or-R-package-on-my-Cloudera-5-9-Spark/m-p/49019#U49019&lt;/A&gt;</description>
    <pubDate>Tue, 03 Jan 2017 18:59:21 GMT</pubDate>
    <dc:creator>ShilpaSinha</dc:creator>
    <dc:date>2017-01-03T18:59:21Z</dc:date>
    <item>
      <title>Spark gateway not starting</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/48963#M50578</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 3 node cluster having Cloudera 5.9&lt;/P&gt;&lt;P&gt;I am new in spark. I have installed it using cloudera add service feature. However I notice Spark gateway is not running on any of the node. When I try to start , it gives the error&amp;nbsp;&lt;SPAN&gt;" &lt;STRONG&gt;Command Start is not currently available for execution&lt;/STRONG&gt; "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am not sure why is this error coming. Do i have to chose the option from CM UI &lt;STRONG&gt;Install spark jars ? &lt;/STRONG&gt;I am using Spark to use Yarn Resource Manager i.e. it not a stand alone Spark.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have&amp;nbsp;7077 707818080 18081 18088 and 4040 ports open for them. History server UI is opening. Also, I am able to launch and use&amp;nbsp;&lt;STRONG&gt;spark-shell. &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;STRONG&gt;However I cannot open Spark UI using ¨&lt;A href="http://lnxmasternode01.centralus.cloudapp.azure.com:4040/¨" target="_blank"&gt;http://lnxmasternode01.centralus.cloudapp.azure.com:4040/¨&lt;/A&gt; It is giving error ¨the site cant be reached¨&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please advice what should I do.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;-bash-4.1$ spark-shell&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Setting default log level to "WARN".&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;To adjust logging level use sc.setLogLevel(newLevel).&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Welcome to&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;____ __&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;/ __/__ ___ _____/ /__&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;_\ \/ _ \/ _ `/ __/ '_/&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;/___/ .__/\_,_/_/ /_/\_\ version 1.6.0&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;/_/&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Using Scala version 2.10.5 (Java HotSpot(TM) 64-Bit Server VM, Java 1.7.0_67)&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Type in expressions to have them evaluated.&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Type :help for more information.&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;Spark context available as sc (master = yarn-client, app id = application_1483386427562_0003).&lt;/FONT&gt;&lt;/EM&gt;&lt;BR /&gt;&lt;EM&gt;&lt;FONT size="2"&gt;SQL context available as sqlContext.&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;FONT size="2"&gt;scala&amp;gt;&lt;/FONT&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shilpa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:52:45 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/48963#M50578</guid>
      <dc:creator>ShilpaSinha</dc:creator>
      <dc:date>2022-09-16T10:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Spark gateway not starting</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/48966#M50579</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;SPAN&gt;Shilpa,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I am assuming that you selected the Spark service from the base CDH 5.9 parcels/packages and didn't fetch is separate and therefor are running a standalone Spark cluster alongside the Hadoop cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In any case, the Spark Gateway, as well as the other Gateway's (HDFS, YARN, HBase, etc.), only install the libraries, binaries, and configuration files required to use the command line tools. &amp;nbsp;In this case it is spark-submit and spark-shell (maybe the pyspark files as well, not 100% sure on it). &amp;nbsp;There is not service to start and stop or monitor. &amp;nbsp;That is why you can't start it and why it is gray instead of green.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;In the case of the above assumption, it automatically sets up the tools to run in YARN mode. &amp;nbsp;This means that the spark application runs in YARN instead of a standalone Spark cluster. &amp;nbsp;Find the ResourceManager UI. &amp;nbsp;You will find the application listed there and can access the AM and worker logs. &amp;nbsp;You will be direct to the Spark History server UI (so you could go directly here if you wanted but it is good to get used to the RM interface).&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 00:48:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/48966#M50579</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-01-03T00:48:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spark gateway not starting</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49001#M50580</link>
      <description>&lt;P&gt;Thanks a lot&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/18127"&gt;@mbigelow&lt;/a&gt;&amp;nbsp;I thought earlier, if it is in YARN mode then those gateways should run hence was trying. I can see the spark enteries in RM UI because I opened spark-shell.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However just one question, in my spark directory (basically spark/sbin) I can see various Stop, Start scripts for Spark Master, slave, history server etc. I tried to start Spark master from the command and now the UI is opening. Do you think I did the right thing? Or it is NOT required?&amp;nbsp;But if I run start slave script, worker UI is Not opening.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Spark-Master UI.PNG" style="width: 600px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/2483iF19A69A0372DF440/image-size/large?v=v2&amp;amp;px=999" role="button" title="Spark-Master UI.PNG" alt="Spark-Master UI.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can you help me again pls.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 16:56:47 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49001#M50580</guid>
      <dc:creator>ShilpaSinha</dc:creator>
      <dc:date>2017-01-03T16:56:47Z</dc:date>
    </item>
    <item>
      <title>Re: Spark gateway not starting</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49006#M50581</link>
      <description>&lt;P&gt;Those scripts, master and slave, are for running a Standalone Spark cluster. &amp;nbsp;They are not needed if you are running Spark in YARN. &amp;nbsp;The preference is to have Spark running in YARN so you don't have to divy up the cluster resources.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The history script is for the Spark History server. &amp;nbsp;You can start and stop that through CM.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My best guess re: the UI not showing up when you start the slave is that the master was no longer running. &amp;nbsp;Were you able to launch the spark-shell afterwards but not access the UI?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 17:30:14 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49006#M50581</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-01-03T17:30:14Z</dc:date>
    </item>
    <item>
      <title>Re: Spark gateway not starting</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49015#M50582</link>
      <description>&lt;P&gt;Yes, previously(without starting master from the script) i was able to work on spark-shell but not open the master UI. However after I started master through script, I was able to open it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But as you said we dont need to do it as we need it in standalone spark mode. I would shut it down. What do you say?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:22:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49015#M50582</guid>
      <dc:creator>ShilpaSinha</dc:creator>
      <dc:date>2017-01-03T18:22:09Z</dc:date>
    </item>
    <item>
      <title>Re: Spark gateway not starting</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49020#M50583</link>
      <description>Yeah, shut it down.&lt;BR /&gt;&lt;BR /&gt;Good luck</description>
      <pubDate>Tue, 03 Jan 2017 18:49:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49020#M50583</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-01-03T18:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spark gateway not starting</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49021#M50584</link>
      <description>Thanks a ton! marking it as solution &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;&lt;BR /&gt;I have another question, if you could help. This is why I need spark &lt;A href="https://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/Run-SparkR-or-R-package-on-my-Cloudera-5-9-Spark/m-p/49019#U49019" target="_blank"&gt;https://community.cloudera.com/t5/Advanced-Analytics-Apache-Spark/Run-SparkR-or-R-package-on-my-Cloudera-5-9-Spark/m-p/49019#U49019&lt;/A&gt;</description>
      <pubDate>Tue, 03 Jan 2017 18:59:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-gateway-not-starting/m-p/49021#M50584</guid>
      <dc:creator>ShilpaSinha</dc:creator>
      <dc:date>2017-01-03T18:59:21Z</dc:date>
    </item>
  </channel>
</rss>

