<?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-submit still pointing to Spark-version although installed Spark2-submit on 2.2 in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268374#M206139</link>
    <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Benjamin.. This has fixed the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would take a note on upgrade point.&amp;nbsp;&lt;/SPAN&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;Romesh&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 20 Aug 2019 11:52:54 GMT</pubDate>
    <dc:creator>R_SHETH</dc:creator>
    <dc:date>2019-08-20T11:52:54Z</dc:date>
    <item>
      <title>spark-submit still pointing to Spark-version although installed Spark2-submit on 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268334#M206101</link>
      <description>&lt;P&gt;[root@sxd-cdh-nn parcels]# spark-submit --version&lt;BR /&gt;Welcome to&lt;BR /&gt;____ __&lt;BR /&gt;/ __/__ ___ _____/ /__&lt;BR /&gt;_\ \/ _ \/ _ `/ __/ '_/&lt;BR /&gt;/___/ .__/\_,_/_/ /_/\_\ version 2.4.0-cdh6.1.1&lt;BR /&gt;/_/&lt;BR /&gt;&lt;BR /&gt;Using Scala version 2.11.12, Java HotSpot(TM) 64-Bit Server VM, 1.8.0_201&lt;BR /&gt;Branch HEAD&lt;BR /&gt;Compiled by user jenkins on 2019-02-08T07:10:49Z&lt;BR /&gt;Revision HEAD&lt;BR /&gt;Url&lt;BR /&gt;Type --help for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we have on top of this installed spark2 with 2.2&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;[root@sxd-cdh-nn parcels]# spark2-submit --version&lt;BR /&gt;Welcome to&lt;BR /&gt;____ __&lt;BR /&gt;/ __/__ ___ _____/ /__&lt;BR /&gt;_\ \/ _ \/ _ `/ __/ '_/&lt;BR /&gt;/___/ .__/\_,_/_/ /_/\_\ version 2.2.0.cloudera1&lt;BR /&gt;/_/&lt;BR /&gt;&lt;BR /&gt;Using Scala version 2.11.8, Java HotSpot(TM) 64-Bit Server VM, 1.8.0_201&lt;BR /&gt;Branch HEAD&lt;BR /&gt;Compiled by user jenkins on 2017-07-13T00:28:58Z&lt;BR /&gt;Revision 39f5a2b89d29d5d420d88ce15c8c55e2b45aeb2e&lt;BR /&gt;Url git://github.mtv.cloudera.com/CDH/spark.git&lt;BR /&gt;Type --help for more information.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Could you please let me know how to uninstall spark-submit --version to 2.4?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;we only want spark2 with 2.2 version&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks&lt;/P&gt;
&lt;P&gt;Romesh&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 10:16:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268334#M206101</guid>
      <dc:creator>R_SHETH</dc:creator>
      <dc:date>2019-08-20T10:16:44Z</dc:date>
    </item>
    <item>
      <title>Re: spark-submit still pointing to Spark-version although installed Spark2-submit on 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268349#M206116</link>
      <description>&lt;P&gt;You can override the "spark-submit" association with alternatives, e.g.:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;/usr/sbin/alternatives --set spark-submit &amp;lt;path-to-spark2-submit&amp;gt;

# &amp;lt;path-to-spark2-submit&amp;gt; could be like "/opt/cloudera/parcels/SPARK2-2.2.0-cloudera1-cdh5.13.3.p0.611179/bin/spark2-submit"
# This is a path of CDH 5 to the Spark parcel directory. You need to adjust it to your path (the one that spark2-shell is pointing to)
# You can find this path with:
/usr/sbin/alternatives --display spark2-submit&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, from CDH 6.x, it is normal to use spark-submit instead of spark2-submit because there is only Spark2 included in CDH. Also, it is normal to use the packaged version inside of the CDH distribution, which seems to be 2.4.0 for your CDH 6.1.1. I am not sure, if using a different version is supported or recommended by Cloudera.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How did you install that Spark 2.2 version in your CDH 6 cluster?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Also see&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/6/6.1/topics/spark.html" target="_blank"&gt;https://www.cloudera.com/documentation/enterprise/6/6.1/topics/spark.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 08:56:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268349#M206116</guid>
      <dc:creator>benhadoop</dc:creator>
      <dc:date>2019-08-20T08:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: spark-submit still pointing to Spark-version although installed Spark2-submit on 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268354#M206120</link>
      <description>&lt;P&gt;Thank you ....&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;this has not been setup by that command.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[root@sxd-cdh-nn sbin]# /usr/sbin/alternatives --set spark-submit "/opt/cloudera/parcels/SPARK2-2.2.0.cloudera1-1.cdh5.12.0.p0.142354/bin/spark2-submit"&lt;BR /&gt;/opt/cloudera/parcels/SPARK2-2.2.0.cloudera1-1.cdh5.12.0.p0.142354/bin/spark2-submit has not been configured as an alternative for spark-submit&lt;BR /&gt;[root@sxd-cdh-nn sbin]# /usr/sbin/alternatives --display spark-submit&lt;BR /&gt;spark-submit - status is auto.&lt;BR /&gt;link currently points to /opt/cloudera/parcels/CDH-6.1.1-1.cdh6.1.1.p0.875250/bin/spark-submit&lt;BR /&gt;/opt/cloudera/parcels/CDH-6.1.1-1.cdh6.1.1.p0.875250/bin/spark-submit - priority 10&lt;BR /&gt;Current `best' version is /opt/cloudera/parcels/CDH-6.1.1-1.cdh6.1.1.p0.875250/bin/spark-submit.&lt;BR /&gt;[root@sxd-cdh-nn sbin]# /usr/sbin/alternatives --display spark2-submit&lt;BR /&gt;spark2-submit - status is auto.&lt;BR /&gt;link currently points to /opt/cloudera/parcels/SPARK2-2.2.0.cloudera1-1.cdh5.12.0.p0.142354/bin/spark2-submit&lt;BR /&gt;/opt/cloudera/parcels/SPARK2-2.2.0.cloudera1-1.cdh5.12.0.p0.142354/bin/spark2-submit - priority 10&lt;BR /&gt;Current `best' version is /opt/cloudera/parcels/SPARK2-2.2.0.cloudera1-1.cdh5.12.0.p0.142354/bin/spark2-submit.&lt;BR /&gt;[root@sxd-cdh-nn sbin]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;we did not pre-configured Spark2 while installing CDH and now we have installed spark 2.2 via parcels method.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Romesh&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 09:19:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268354#M206120</guid>
      <dc:creator>R_SHETH</dc:creator>
      <dc:date>2019-08-20T09:19:27Z</dc:date>
    </item>
    <item>
      <title>Re: spark-submit still pointing to Spark-version although installed Spark2-submit on 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268370#M206135</link>
      <description>&lt;P&gt;Based on your output (auto mode in alternatives) you can try to add it with a higher priority (the 2.4 spark-submit has priority 10):&lt;/P&gt;&lt;LI-CODE lang="python"&gt;/usr/sbin/alternatives --install /usr/bin/spark-submit spark-submit /opt/cloudera/parcels/SPARK2/bin/spark2-submit 100&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Be aware that Cloudera Manager might (try to) overwrite this on CDH updates.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Again, I would recommend using the packaged Spark that comes with CDH and have doubts that using CDS in CDH 6.x is supported (also see&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/spark2/latest/topics/spark2_requirements.html#cdh_versions" target="_blank" rel="noopener"&gt;[CDS Requirements - CDH Versions]&lt;/A&gt;&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/upgrade/topics/ug_spark_standalone.html" target="_blank" rel="noopener"&gt;[Migrating Apache Spark Before Upgrading to CDH 6]&lt;/A&gt;)&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Regards&lt;BR /&gt;Benjamin&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 11:30:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268370#M206135</guid>
      <dc:creator>benhadoop</dc:creator>
      <dc:date>2019-08-20T11:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: spark-submit still pointing to Spark-version although installed Spark2-submit on 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268374#M206139</link>
      <description>&lt;P&gt;Thank you&amp;nbsp;&lt;SPAN&gt;Benjamin.. This has fixed the issue.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I would take a note on upgrade point.&amp;nbsp;&lt;/SPAN&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;Romesh&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 11:52:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268374#M206139</guid>
      <dc:creator>R_SHETH</dc:creator>
      <dc:date>2019-08-20T11:52:54Z</dc:date>
    </item>
    <item>
      <title>Re: spark-submit still pointing to Spark-version although installed Spark2-submit on 2.2</title>
      <link>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268376#M206141</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/35019"&gt;@R_SHETH&lt;/a&gt;,&amp;nbsp;great to hear!&lt;/P&gt;&lt;P&gt;Please mark the reply as the accepted answer if it solved your problem &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 20 Aug 2019 12:19:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/spark-submit-still-pointing-to-Spark-version-although/m-p/268376#M206141</guid>
      <dc:creator>benhadoop</dc:creator>
      <dc:date>2019-08-20T12:19:30Z</dc:date>
    </item>
  </channel>
</rss>

