<?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 Confused about the Spark setup doc in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Confused-about-the-Spark-setup-doc/m-p/127907#M34672</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like the highlighted parts below are conflicting. Both are trying to set SPARK_HOME variable (with different values). Do you have any ideas?&lt;/P&gt;&lt;P&gt;link: &lt;A href="http://hortonworks.com/hadoop-tutorial/a-lap-around-apache-spark/"&gt;http://hortonworks.com/hadoop-tutorial/a-lap-around-apache-spark/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Set JAVA_HOME and SPARK_HOME:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Make sure that you set JAVA_HOME before you launch the Spark Shell or thrift server.&lt;/P&gt;&lt;P&gt;export JAVA_HOME=&amp;lt;path to JDK 1.8&amp;gt;&lt;/P&gt;&lt;P&gt;The Spark install creates the directory where Spark binaries are unpacked to /usr/hdp/2.3.4.1-10/spark.&lt;/P&gt;&lt;P&gt;Set the SPARK_HOME variable to this directory:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export SPARK_HOME=/usr/hdp/2.3.4.1-10/spark/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Create hive-site in the Spark conf directory:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As user root, create the file SPARK_HOME/conf/hive-site.xml. Edit the file to contain only the following configuration setting:&lt;/P&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;hive.metastore.uris&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--Make sure that &amp;lt;value&amp;gt; points to the Hive Metastore URI in your cluster --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;thrift://sandbox.hortonworks.com:9083&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;description&amp;gt;URI for client to contact metastore server&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set SPARK_HOME&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you haven’t already, make sure to set SPARK_HOME before proceeding:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export SPARK_HOME=/usr/hdp/current/spark-client&lt;/STRONG&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 14 Jul 2016 04:11:50 GMT</pubDate>
    <dc:creator>tli</dc:creator>
    <dc:date>2016-07-14T04:11:50Z</dc:date>
    <item>
      <title>Confused about the Spark setup doc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Confused-about-the-Spark-setup-doc/m-p/127907#M34672</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Looks like the highlighted parts below are conflicting. Both are trying to set SPARK_HOME variable (with different values). Do you have any ideas?&lt;/P&gt;&lt;P&gt;link: &lt;A href="http://hortonworks.com/hadoop-tutorial/a-lap-around-apache-spark/"&gt;http://hortonworks.com/hadoop-tutorial/a-lap-around-apache-spark/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;3. Set JAVA_HOME and SPARK_HOME:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Make sure that you set JAVA_HOME before you launch the Spark Shell or thrift server.&lt;/P&gt;&lt;P&gt;export JAVA_HOME=&amp;lt;path to JDK 1.8&amp;gt;&lt;/P&gt;&lt;P&gt;The Spark install creates the directory where Spark binaries are unpacked to /usr/hdp/2.3.4.1-10/spark.&lt;/P&gt;&lt;P&gt;Set the SPARK_HOME variable to this directory:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export SPARK_HOME=/usr/hdp/2.3.4.1-10/spark/&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;4. Create hive-site in the Spark conf directory:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;As user root, create the file SPARK_HOME/conf/hive-site.xml. Edit the file to contain only the following configuration setting:&lt;/P&gt;&lt;P&gt;&amp;lt;configuration&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;property&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;name&amp;gt;hive.metastore.uris&amp;lt;/name&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;!--Make sure that &amp;lt;value&amp;gt; points to the Hive Metastore URI in your cluster --&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;value&amp;gt;thrift://sandbox.hortonworks.com:9083&amp;lt;/value&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;description&amp;gt;URI for client to contact metastore server&amp;lt;/description&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;lt;/property&amp;gt;&amp;lt;/configuration&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set SPARK_HOME&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If you haven’t already, make sure to set SPARK_HOME before proceeding:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;export SPARK_HOME=/usr/hdp/current/spark-client&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 14 Jul 2016 04:11:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Confused-about-the-Spark-setup-doc/m-p/127907#M34672</guid>
      <dc:creator>tli</dc:creator>
      <dc:date>2016-07-14T04:11:50Z</dc:date>
    </item>
    <item>
      <title>Re: Confused about the Spark setup doc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Confused-about-the-Spark-setup-doc/m-p/127908#M34673</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I don't think it matters as "/usr/hdp/current/spark-client" directory is a symlink to the "/usr/hdp/2.3.4.1-10/spark/"  directory.&lt;/P&gt;&lt;P&gt;you can verify like below:&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5775-screen-shot-2016-07-13-at-103228-pm.png" style="width: 1366px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22561i8AF08A48687BC750/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5775-screen-shot-2016-07-13-at-103228-pm.png" alt="5775-screen-shot-2016-07-13-at-103228-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;[In my screenshot hdp version is slightly different from yours]&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:55:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Confused-about-the-Spark-setup-doc/m-p/127908#M34673</guid>
      <dc:creator>jgeorge</dc:creator>
      <dc:date>2019-08-19T09:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: Confused about the Spark setup doc</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Confused-about-the-Spark-setup-doc/m-p/127909#M34674</link>
      <description>&lt;P&gt;Got it. Thanks for the answer!&lt;/P&gt;</description>
      <pubDate>Fri, 15 Jul 2016 00:19:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Confused-about-the-Spark-setup-doc/m-p/127909#M34674</guid>
      <dc:creator>tli</dc:creator>
      <dc:date>2016-07-15T00:19:26Z</dc:date>
    </item>
  </channel>
</rss>

