<?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 how to choose which version of spark be used in HDP 2.5? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115085#M50905</link>
    <description>&lt;P&gt;There are two versions of Spark in HDP 2.5, Spark 1.6 and Spark 2.0. I don't know how I can specify the version of Spark to be used. Can anyone advise me how to do that? Ambari admin console?&lt;/P&gt;&lt;P&gt;Also I would like to submit  job to Spark 2.0 from my application instead of spark-submit. What should I specify for the master url in the new SparkSession?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Donald &lt;/P&gt;</description>
    <pubDate>Thu, 05 Jan 2017 22:20:42 GMT</pubDate>
    <dc:creator>donaldyy</dc:creator>
    <dc:date>2017-01-05T22:20:42Z</dc:date>
    <item>
      <title>how to choose which version of spark be used in HDP 2.5?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115085#M50905</link>
      <description>&lt;P&gt;There are two versions of Spark in HDP 2.5, Spark 1.6 and Spark 2.0. I don't know how I can specify the version of Spark to be used. Can anyone advise me how to do that? Ambari admin console?&lt;/P&gt;&lt;P&gt;Also I would like to submit  job to Spark 2.0 from my application instead of spark-submit. What should I specify for the master url in the new SparkSession?&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Donald &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:20:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115085#M50905</guid>
      <dc:creator>donaldyy</dc:creator>
      <dc:date>2017-01-05T22:20:42Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose which version of spark be used in HDP 2.5?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115086#M50906</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/2674/donaldyy.html" nodeid="2674"&gt;@yong yang&lt;/A&gt;&lt;P&gt;Please refer to the link below:&lt;/P&gt;&lt;P&gt;&lt;A href="http://hortonworks.com/hadoop-tutorial/a-lap-around-apache-spark/" target="_blank"&gt;http://hortonworks.com/hadoop-tutorial/a-lap-around-apache-spark/&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:25:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115086#M50906</guid>
      <dc:creator>skurup</dc:creator>
      <dc:date>2017-01-05T22:25:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose which version of spark be used in HDP 2.5?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115087#M50907</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2674/donaldyy.html" nodeid="2674"&gt;@yong yang&lt;/A&gt;&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;By default, if more than one version of Spark is installed on a node, your job runs with the default version for your HDP package.&lt;P&gt;The default version for HDP 2.5.0 is Spark 1.6.2.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;If more than one version of Spark is installed on a node, you can select which version of Spark runs your job.&lt;P&gt;To do this, set the &lt;CODE&gt;SPARK_MAJOR_VERSION&lt;/CODE&gt; environment variable to the desired version before you launch the job.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Here is an example for a user who submits jobs using &lt;CODE&gt;spark-submit&lt;/CODE&gt; under &lt;CODE&gt;/usr/bin&lt;/CODE&gt;:&lt;/P&gt;&lt;OL&gt;
&lt;LI&gt;Navigate to a host where Spark 2.0 is installed.&lt;/LI&gt;&lt;LI&gt;Change to the Spark2 client directory:&lt;P&gt;&lt;CODE&gt;cd /usr/hdp/current/spark2-client/&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Set the &lt;CODE&gt;SPARK_MAJOR_VERSION&lt;/CODE&gt; environment variable to 2:&lt;P&gt;&lt;CODE&gt;export SPARK_MAJOR_VERSION=2&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;Run the Spark Pi example:&lt;P&gt;&lt;CODE&gt;./bin/spark-submit --class org.apache.spark.examples.SparkPi --master yarn-cluster --num-executors 1 --driver-memory 512m --executor-memory 512m --executor-cores 1 examples/jars/spark-examples*.jar 10&lt;/CODE&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:26:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115087#M50907</guid>
      <dc:creator>nyadav</dc:creator>
      <dc:date>2017-01-05T22:26:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose which version of spark be used in HDP 2.5?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115088#M50908</link>
      <description>&lt;P&gt;Many thanks for your reply. Is it possible to change the default Spark version from 1.6.2 to 2.0 for the whole hadoop cluster from Ambari by setting SPARK_MAJOR_VERSION?&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 22:39:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115088#M50908</guid>
      <dc:creator>donaldyy</dc:creator>
      <dc:date>2017-01-05T22:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose which version of spark be used in HDP 2.5?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115089#M50909</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/2674/donaldyy.html" nodeid="2674"&gt;@yong yang&lt;/A&gt;. &lt;/P&gt;&lt;P&gt;The &lt;CODE&gt;SPARK_MAJOR_VERSION&lt;/CODE&gt; environment variable can be set by any user who logs on to a client machine to run Spark. The scope of the environment variable is local to the user session. Maybe in later version we may get option to to do this from ambari. Please do accept the answer, so it may useful to others too. Thx &lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 23:20:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115089#M50909</guid>
      <dc:creator>nyadav</dc:creator>
      <dc:date>2017-01-05T23:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose which version of spark be used in HDP 2.5?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115090#M50910</link>
      <description>&lt;P&gt;Many thanks for all your replies. Now I know how to specify the version of Spark to be used.&lt;/P&gt;</description>
      <pubDate>Fri, 06 Jan 2017 16:13:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115090#M50910</guid>
      <dc:creator>donaldyy</dc:creator>
      <dc:date>2017-01-06T16:13:38Z</dc:date>
    </item>
    <item>
      <title>Re: how to choose which version of spark be used in HDP 2.5?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115091#M50911</link>
      <description>&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;I still don't get the point of specifying the variable while you provide entire path to the spark2 client. Could you please give me a reason for doing so?&lt;/P&gt;&lt;P&gt;On HDP 2.6.2 I use there is enough to specify a path to appropriate spark client and then the version is chosen automatically.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Mar 2018 20:57:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-choose-which-version-of-spark-be-used-in-HDP-2-5/m-p/115091#M50911</guid>
      <dc:creator>michal_baran</dc:creator>
      <dc:date>2018-03-08T20:57:23Z</dc:date>
    </item>
  </channel>
</rss>

