<?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 can I limit the amount of YARN memory allocated to the Spark interpreter in Zeppelin? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152663#M115130</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I notice that each time I run a Spark script through Zeppelin it utilises the full amount of YARN memory available in my cluster. Is there a way that I can limit / manage memory consumption? Irrelevant of the type of job demands it seems to always use 100% of the cluster.&lt;/P&gt;&lt;P&gt;Thanks,M&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jul 2016 23:09:53 GMT</pubDate>
    <dc:creator>mph</dc:creator>
    <dc:date>2016-07-27T23:09:53Z</dc:date>
    <item>
      <title>How can I limit the amount of YARN memory allocated to the Spark interpreter in Zeppelin?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152663#M115130</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I notice that each time I run a Spark script through Zeppelin it utilises the full amount of YARN memory available in my cluster. Is there a way that I can limit / manage memory consumption? Irrelevant of the type of job demands it seems to always use 100% of the cluster.&lt;/P&gt;&lt;P&gt;Thanks,M&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jul 2016 23:09:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152663#M115130</guid>
      <dc:creator>mph</dc:creator>
      <dc:date>2016-07-27T23:09:53Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limit the amount of YARN memory allocated to the Spark interpreter in Zeppelin?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152664#M115131</link>
      <description>&lt;P&gt;In general you can change the executor memory in Zeppelin by modifying zeppelin-env.sh and including&lt;/P&gt;&lt;PRE&gt; export ZEPPELIN_JAVA_OPTS="-Dspark.executor.memory=1g"&lt;/PRE&gt;&lt;P&gt;If you are installing &lt;A href="https://github.com/hortonworks-gallery/ambari-zeppelin-service" rel="nofollow noopener noreferrer" target="_blank"&gt;Zeppelin via Ambari&lt;/A&gt;, you can set this via zeppelin.executor.mem (see screenshot)&lt;/P&gt;&lt;P&gt;You can follow the tutorial here which goes through create queue and configure zeppelin to use it&lt;/P&gt;&lt;P&gt;&lt;A href="https://github.com/hortonworks-gallery/ambari-zeppelin-service/blob/master/README.md" target="_blank" rel="nofollow noopener noreferrer"&gt;https://github.com/hortonworks-gallery/ambari-zeppelin-service/blob/master/README.md&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="6116-screen-shot-2016-07-27-at-114352-am.png" style="width: 2644px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/21089i82FFE7B17FD79BF3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="6116-screen-shot-2016-07-27-at-114352-am.png" alt="6116-screen-shot-2016-07-27-at-114352-am.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 12:44:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152664#M115131</guid>
      <dc:creator>abajwa</dc:creator>
      <dc:date>2019-08-18T12:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limit the amount of YARN memory allocated to the Spark interpreter in Zeppelin?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152665#M115132</link>
      <description>&lt;P&gt;Here's one way: edit ZEPPELIN_JAVA_OPTS in zeppelin-env.sh. You can also leverage dynamic allocation (read &lt;A target="_blank" href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.0/bk_spark-guide/content/config-dra-manual.html"&gt;this&lt;/A&gt;) if you want dynamic scaling.&lt;/P&gt;&lt;PRE&gt;[root@craig-a-1 conf]# grep "ZEPPELIN_JAVA_OPTS" /usr/hdp/current/zeppelin-server/lib/conf/zeppelin-env.sh
# Additional jvm options. for example, export ZEPPELIN_JAVA_OPTS="-Dspark.executor.memory=8g -Dspark.cores.max=16"
export ZEPPELIN_JAVA_OPTS="-Dhdp.version=2.4.2.0-258 -Dspark.executor.memory=512m -Dspark.executor.instances=2 -Dspark.yarn.queue=default"
# zeppelin interpreter process jvm options. Default = ZEPPELIN_JAVA_OPTS&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 01:47:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152665#M115132</guid>
      <dc:creator>clukasik</dc:creator>
      <dc:date>2016-07-28T01:47:49Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limit the amount of YARN memory allocated to the Spark interpreter in Zeppelin?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152666#M115133</link>
      <description>&lt;P&gt;I tried the following two suggestions independently (full restarts of Zeppelin each time) with no luck.&lt;/P&gt;&lt;P&gt;First, via Ambari, I changed zeppelin.executor.mem from 512m to 256m and zeppelin.executor.instances from 2 to 1.&lt;/P&gt;&lt;P&gt;Then, again via Ambari, I updated the following snippet of the zeppelin_env_content &lt;/P&gt;&lt;P&gt;from&lt;/P&gt;&lt;PRE&gt;export ZEPPELIN_JAVA_OPTS="-Dhdp.version={{full_stack_version}} -Dspark.executor.memory={{executor_mem}} -Dspark.executor.instances={{executor_instances}} -Dspark.yarn.queue={{spark_queue}}"&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;export ZEPPELIN_JAVA_OPTS="-Dhdp.version={{full_stack_version}} -Dspark.executor.memory=512m -Dspark.executor.instances=2 -Dspark.yarn.queue={{spark_queue}}"&lt;/PRE&gt;&lt;P&gt;Both times, my little 2.5 Sandbox was still running full throttle once I run some code in Zeppelin.  If anyone notices what I missed on this, please advise.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 07:39:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152666#M115133</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2017-02-13T07:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limit the amount of YARN memory allocated to the Spark interpreter in Zeppelin?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152667#M115134</link>
      <description>&lt;P&gt;You can probably specify a dedicated queue for Zeppelin/Spark in capacity scheduler configuration and give it a limit, for example 50% of the total resources.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 10:17:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152667#M115134</guid>
      <dc:creator>vjiang</dc:creator>
      <dc:date>2017-02-13T10:17:04Z</dc:date>
    </item>
    <item>
      <title>Re: How can I limit the amount of YARN memory allocated to the Spark interpreter in Zeppelin?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152668#M115135</link>
      <description>&lt;P&gt;Good point.  For my Sandbox testing, I decided to just use the steps provided in &lt;A href="http://stackoverflow.com/questions/40550011/zeppelin-how-to-restart-sparkcontext-in-zeppelin" target="_blank"&gt;http://stackoverflow.com/questions/40550011/zeppelin-how-to-restart-sparkcontext-in-zeppelin&lt;/A&gt; to stop the SparkContext when I need to do something outside of Zeppelin.  Not ideal, but working good enough for some multi-framework prototyping I'm doing.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Feb 2017 22:36:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-can-I-limit-the-amount-of-YARN-memory-allocated-to-the/m-p/152668#M115135</guid>
      <dc:creator>LesterMartin</dc:creator>
      <dc:date>2017-02-13T22:36:20Z</dc:date>
    </item>
  </channel>
</rss>

