<?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 2.2 and Livy in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/91213#M65683</link>
    <description>&lt;P&gt;Is there a way of doing this without having to&amp;nbsp;&lt;SPAN&gt;make Spark2 the default? I tried to search among Livy conf parameters, but I couldn't find anything.&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 04 Jun 2019 17:11:37 GMT</pubDate>
    <dc:creator>theArrascue</dc:creator>
    <dc:date>2019-06-04T17:11:37Z</dc:date>
    <item>
      <title>Spark 2.2 and Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/58177#M65680</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have both Spark 1.6 and Spark 2.2 installed in my cluster through CDH. Normally my Livy server starts with default Spark 1.6 but now I want to start my Livy with Spark 2.2 which I figured maybe by changing the&amp;nbsp;SPARK_HOME to point to SPARK2 would do the trick:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Previously:&lt;/P&gt;&lt;P&gt;export SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark&lt;/P&gt;&lt;P&gt;export SPARK_CONF_DIR=$SPARK_HOME/conf&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;New:&lt;/P&gt;&lt;P&gt;export SPARK_HOME=/opt/cloudera/parcels/SPARK2&lt;/P&gt;&lt;P&gt;export SPARK_CONF_DIR=$SPARK_HOME/meta&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But this will led to an error which is understandable as Spark2 in Cloudera is spark2-submit:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Exception in thread "main" java.io.IOException: Cannot run program "/opt/cloudera/parcels/SPARK2/bin/spark-submit": error=2, No such file or directory&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Is there anyway to configure the Livy to find the right spark2-submit and not the default name? I looked every where in the config and the code but maybe I missed something.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Maziyar&lt;/P&gt;</description>
      <pubDate>Tue, 21 Apr 2026 13:46:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/58177#M65680</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2026-04-21T13:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.2 and Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/58181#M65681</link>
      <description>I haven't done this yet but it should do the trick. You need to update the alternatives to make Spark2 the default. This will make it the default across the board and not just for Livy. So make sure you are ready for that.&lt;BR /&gt;&lt;BR /&gt;&lt;A href="https://www.cloudera.com/documentation/spark2/latest/topics/spark2_admin.html" target="_blank"&gt;https://www.cloudera.com/documentation/spark2/latest/topics/spark2_admin.html&lt;/A&gt;</description>
      <pubDate>Fri, 28 Jul 2017 15:03:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/58181#M65681</guid>
      <dc:creator>mbigelow</dc:creator>
      <dc:date>2017-07-28T15:03:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.2 and Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/58216#M65682</link>
      <description>&lt;P&gt;It worked! I just ran&amp;nbsp;the script on the node that is my Livy server.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 29 Jul 2017 21:56:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/58216#M65682</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2017-07-29T21:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.2 and Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/91213#M65683</link>
      <description>&lt;P&gt;Is there a way of doing this without having to&amp;nbsp;&lt;SPAN&gt;make Spark2 the default? I tried to search among Livy conf parameters, but I couldn't find anything.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Jun 2019 17:11:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/91213#M65683</guid>
      <dc:creator>theArrascue</dc:creator>
      <dc:date>2019-06-04T17:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2.2 and Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/91621#M65684</link>
      <description>The Spark 2 now is the only Spark that is supported by CDH 6.x so I am not sure you will get any reply here.&lt;BR /&gt;Is there any reason you are still in Spark 1.6.x?</description>
      <pubDate>Fri, 14 Jun 2019 10:39:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-2-and-Livy/m-p/91621#M65684</guid>
      <dc:creator>maziyar</dc:creator>
      <dc:date>2019-06-14T10:39:46Z</dc:date>
    </item>
  </channel>
</rss>

