<?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 does context sharing work in Spark and Zepplin? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126734#M26961</link>
    <description>&lt;P&gt;how does context pass from paragraph to paragraph? Think hive context shared with Spark, then phoenix, etc. Also is context sharing enabled for multi-user?&lt;/P&gt;</description>
    <pubDate>Tue, 03 May 2016 02:52:42 GMT</pubDate>
    <dc:creator>aervits</dc:creator>
    <dc:date>2016-05-03T02:52:42Z</dc:date>
    <item>
      <title>How does context sharing work in Spark and Zepplin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126734#M26961</link>
      <description>&lt;P&gt;how does context pass from paragraph to paragraph? Think hive context shared with Spark, then phoenix, etc. Also is context sharing enabled for multi-user?&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 02:52:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126734#M26961</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-05-03T02:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: How does context sharing work in Spark and Zepplin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126735#M26962</link>
      <description>&lt;P style="margin-left: 40px;"&gt; &lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;    I nice article by vadim was created on HCC &lt;A href="https://community.hortonworks.com/content/repo/29883/sparksql-data-federation-demo.html"&gt;here&lt;/A&gt;.  Hope this helps.&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 02:55:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126735#M26962</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-05-03T02:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: How does context sharing work in Spark and Zepplin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126736#M26963</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/393/aervits.html" nodeid="393"&gt;@Artem Ervits&lt;/A&gt;  you do not think of context passing between spark, phoenix, hive. You would load data as Dataframe/Dataset  into local variable   from your datasource, you would do this for every datasource. Example:&lt;/P&gt;&lt;PRE&gt;val mysqlTableDF = hiveContext.read.format("jdbc")....load(); //load a mysql table
val csvDF = hiveContext.read.format("com.databricks.spark.csv") ...load() //load a csv file
&lt;/PRE&gt;&lt;P&gt;and than you would work with those DataFrames and do joins , filters, etc. ex:&lt;/P&gt;&lt;PRE&gt;val joined_df = hiveTablesDF.join(factsales,"key")&lt;/PRE&gt;&lt;P&gt;For Context sharing Sunile is right , Vadim created an article on &lt;A href="https://community.hortonworks.com/content/repo/29883/sparksql-data-federation-demo.html"&gt;HCC&lt;/A&gt; that gives more details. But the  short version if you want to share context:&lt;/P&gt;&lt;P&gt;Log into Amabri as admin&lt;/P&gt;&lt;P&gt;Click on the Spark service in the left hand pane&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Click on Configs&lt;/LI&gt;&lt;LI&gt;Click on the "Custom spark-defaults"&lt;/LI&gt;&lt;LI&gt;Add a custom property key=spark.sql.hive.thriftServer.singleSession value=true&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;Note this is only required in Spark 1.6 , 1.5 you had automatic context sharing.&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 May 2016 03:11:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126736#M26963</guid>
      <dc:creator>azeltov</dc:creator>
      <dc:date>2016-05-03T03:11:02Z</dc:date>
    </item>
    <item>
      <title>Re: How does context sharing work in Spark and Zepplin?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126737#M26964</link>
      <description>&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/393/aervits.html"&gt;@Artem Ervits&lt;/A&gt;, context sharing in Spark just got better with the latest Tech preview of Zeppelin which is Livy integrated - &lt;A href="https://hortonworks.com/hadoop-tutorial/apache-zeppelin-hdp-2-4-2/" target="_blank"&gt;https://hortonworks.com/hadoop-tutorial/apache-zeppelin-hdp-2-4-2/&lt;/A&gt;. Livy acts both as a Job server, and in addition enables multi-user scenarios, allowing the users to latch on to an existing session. &lt;/P&gt;</description>
      <pubDate>Thu, 02 Jun 2016 20:37:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-does-context-sharing-work-in-Spark-and-Zepplin/m-p/126737#M26964</guid>
      <dc:creator>rchoudhary</dc:creator>
      <dc:date>2016-06-02T20:37:23Z</dc:date>
    </item>
  </channel>
</rss>

