<?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 Re: Spark 2 interpreter runs only 3 containers in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-interpreter-runs-only-3-containers/m-p/181701#M65031</link>
    <description>&lt;P&gt;It works! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 18 Jul 2017 17:01:23 GMT</pubDate>
    <dc:creator>grabowski14</dc:creator>
    <dc:date>2017-07-18T17:01:23Z</dc:date>
    <item>
      <title>Spark 2 interpreter runs only 3 containers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-interpreter-runs-only-3-containers/m-p/181699#M65029</link>
      <description>&lt;P&gt;
 Hi. I have a problem with Spark 2 interpreter in Zeppelin. I configured interpreter like this:&lt;/P&gt;&lt;P&gt;
 &lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20470-zeppelin-1.png" style="width: 1234px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19203iB9FEC57E58BD8503/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20470-zeppelin-1.png" alt="20470-zeppelin-1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;When I run query like this:&lt;/P&gt;&lt;PRE&gt;%spark2.sql
select var1, count(*) as counter
from database.table_1
group by var1
order by counter desc&lt;/PRE&gt;&lt;P&gt;Spark job runs only 3 containers and job takes 13 minutes. &lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="20471-zeppelin-2.png" style="width: 1378px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/19204i2D7F139841B0A2DE/image-size/medium?v=v2&amp;amp;px=400" role="button" title="20471-zeppelin-2.png" alt="20471-zeppelin-2.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Does anyone know why Spark interpreter takes only 4.9 % of queue? How I should configure the interpreter to increase this factor?&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 08:59:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-interpreter-runs-only-3-containers/m-p/181699#M65029</guid>
      <dc:creator>grabowski14</dc:creator>
      <dc:date>2019-08-18T08:59:12Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2 interpreter runs only 3 containers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-interpreter-runs-only-3-containers/m-p/181700#M65030</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11713/grabowski14.html" nodeid="11713"&gt;@Mateusz Grabowski&lt;/A&gt;, You should enable Dynamic Resource Allocation in Spark to automatically increase/decrease executors of an app as per resource availability. &lt;/P&gt;&lt;P&gt;You can choose to enable DRA in either Spark or Zeppelin . &lt;/P&gt;&lt;P&gt;1) Enable DRA for Spark2 as below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/content/supportkb/49510/how-to-enable-dynamic-resource-allocation-in-spark.html" target="_blank"&gt;https://community.hortonworks.com/content/supportkb/49510/how-to-enable-dynamic-resource-allocation-in-spark.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;2) Enable DRA via Livy Interpreter. Run all spark notebooks via livy interpreters.&lt;/P&gt;&lt;P&gt;&lt;A href="https://zeppelin.apache.org/docs/0.6.1/interpreter/livy.html"&gt;https://zeppelin.apache.org/docs/0.6.1/interpreter/livy.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 04:24:34 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-interpreter-runs-only-3-containers/m-p/181700#M65030</guid>
      <dc:creator>yvora</dc:creator>
      <dc:date>2017-07-18T04:24:34Z</dc:date>
    </item>
    <item>
      <title>Re: Spark 2 interpreter runs only 3 containers</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-interpreter-runs-only-3-containers/m-p/181701#M65031</link>
      <description>&lt;P&gt;It works! Thank you &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Jul 2017 17:01:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Spark-2-interpreter-runs-only-3-containers/m-p/181701#M65031</guid>
      <dc:creator>grabowski14</dc:creator>
      <dc:date>2017-07-18T17:01:23Z</dc:date>
    </item>
  </channel>
</rss>

