<?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 avoid sharing spark context between two Zeppelin notebooks? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-sharing-spark-context-between-two-Zeppelin/m-p/226847#M188707</link>
    <description>&lt;P&gt;When you use Spark from a Zeppelin notebook, and at the end you isse a context stop, &lt;/P&gt;&lt;PRE&gt;sc.stop()&lt;/PRE&gt;&lt;P&gt;it affects the context of other running Zeppeling notebooks, making them fail because of no Spark active context. They seem to be sharing the same Spark context.&lt;/P&gt;&lt;P&gt;How can this be avoided?&lt;/P&gt;</description>
    <pubDate>Mon, 11 Dec 2017 22:48:25 GMT</pubDate>
    <dc:creator>fernando_lopez</dc:creator>
    <dc:date>2017-12-11T22:48:25Z</dc:date>
    <item>
      <title>How to avoid sharing spark context between two Zeppelin notebooks?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-sharing-spark-context-between-two-Zeppelin/m-p/226847#M188707</link>
      <description>&lt;P&gt;When you use Spark from a Zeppelin notebook, and at the end you isse a context stop, &lt;/P&gt;&lt;PRE&gt;sc.stop()&lt;/PRE&gt;&lt;P&gt;it affects the context of other running Zeppeling notebooks, making them fail because of no Spark active context. They seem to be sharing the same Spark context.&lt;/P&gt;&lt;P&gt;How can this be avoided?&lt;/P&gt;</description>
      <pubDate>Mon, 11 Dec 2017 22:48:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-sharing-spark-context-between-two-Zeppelin/m-p/226847#M188707</guid>
      <dc:creator>fernando_lopez</dc:creator>
      <dc:date>2017-12-11T22:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to avoid sharing spark context between two Zeppelin notebooks?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-sharing-spark-context-between-two-Zeppelin/m-p/226848#M188708</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/12839/fernandolopez.html" nodeid="12839" target="_blank"&gt;@Fernando Lopez Bello&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Sharing of interpreter processes is easily adjustable&lt;BR /&gt;Go to the interpreter setting page :&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="45388-screen-shot-2017-12-12-at-121129.png" style="width: 370px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15331i4D74D4CEAF2D90A4/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45388-screen-shot-2017-12-12-at-121129.png" alt="45388-screen-shot-2017-12-12-at-121129.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;And scroll down to the spark interpreter : &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="45391-screen-shot-2017-12-12-at-121346.png" style="width: 958px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/15332i5BC940CA81716C5B/image-size/medium?v=v2&amp;amp;px=400" role="button" title="45391-screen-shot-2017-12-12-at-121346.png" alt="45391-screen-shot-2017-12-12-at-121346.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;By default interpreters are shared globaly : ie - all notes/users share the same interpreter instance (hence the same spark context)&lt;BR /&gt;Change the setting to either "per note" or "per user" depending on your use case : &lt;BR /&gt;- Per Note : ie - each note will instantiate a separate interpreter process &lt;BR /&gt;- Per User : ie - each user instantiates a seperate interpreter process (which is shared amongst the notes for which he/she has ownership) &lt;/P&gt;&lt;P&gt;Below an article written by one of the original developpers of zeppelin describing interpreter modes : &lt;/P&gt;&lt;P&gt;&lt;A href="https://medium.com/@leemoonsoo/apache-zeppelin-interpreter-mode-explained-bae0525d0555" rel="nofollow noopener noreferrer" target="_blank"&gt;https://medium.com/@leemoonsoo/apache-zeppelin-interpreter-mode-explained-bae0525d0555&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Zeppelin documentation: &lt;BR /&gt;&lt;A href="https://zeppelin.apache.org/docs/latest/manual/interpreters.html#interpreter-binding-mode" rel="nofollow noopener noreferrer" target="_blank"&gt;https://zeppelin.apache.org/docs/latest/manual/interpreters.html#interpreter-binding-mode&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 01:24:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-to-avoid-sharing-spark-context-between-two-Zeppelin/m-p/226848#M188708</guid>
      <dc:creator>mlamairesse</dc:creator>
      <dc:date>2019-08-18T01:24:03Z</dc:date>
    </item>
  </channel>
</rss>

