<?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: How to increase amount of containers (and executors) when running Spark code via Livy in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-increase-amount-of-containers-and-executors-when/m-p/163598#M57400</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12921/wbekker.html" nodeid="12921"&gt;@Ward Bekker&lt;/A&gt;, Firstly, find out the correct configuration in spark to occupy a full cluster. You will need to tune num of executors, executor cores, memory, driver memory etc.&lt;/P&gt;&lt;P&gt;References: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/56240/spark-num-executors-setting.html"&gt;https://community.hortonworks.com/questions/56240/spark-num-executors-setting.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/37871194/how-to-tune-spark-executor-number-cores-and-executor-memory"&gt;http://stackoverflow.com/questions/37871194/how-to-tune-spark-executor-number-cores-and-executor-memory&lt;/A&gt;&lt;/P&gt;&lt;P&gt; After figuring out the correct configs, you can use one of the below approaches to set up zeppelin and livy interpreter.&lt;/P&gt;&lt;P&gt;1) You can set SPARK_SUBMIT_OPTIONS in conf/zeppelin-env.sh to specify number of executors, executor cores, memory, driver memory etc . ( This config will be applied on all the spark &amp;amp; livy interpreters )&lt;/P&gt;&lt;PRE&gt;export SPARK_SUBMIT_OPTIONS="--num-executors X --executor-cores Y --executor-memory Z"&lt;/PRE&gt;&lt;P&gt;2) Set configs in livy interpreter. Open livy interpreter page and add below configs in livy interpreter. &lt;/P&gt;&lt;PRE&gt;livy.spark.executor.instances X
livy.spark.executor.cores Y
livy.spark.executor.memory Z&lt;/PRE&gt;</description>
    <pubDate>Mon, 20 Mar 2017 03:03:13 GMT</pubDate>
    <dc:creator>yvora</dc:creator>
    <dc:date>2017-03-20T03:03:13Z</dc:date>
    <item>
      <title>How to increase amount of containers (and executors) when running Spark code via Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-increase-amount-of-containers-and-executors-when/m-p/163597#M57399</link>
      <description>&lt;P&gt;When running spark code in Zeppelin via Livy interpreter, I only see a few containers allocated in yarn. What settings do I need to change to make sure I leverage full cluster capacity? I'm using a cluster created by Hortonworks Datacloud on AWS&lt;/P&gt;</description>
      <pubDate>Sat, 18 Mar 2017 20:32:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-increase-amount-of-containers-and-executors-when/m-p/163597#M57399</guid>
      <dc:creator>wbekker</dc:creator>
      <dc:date>2017-03-18T20:32:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase amount of containers (and executors) when running Spark code via Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-increase-amount-of-containers-and-executors-when/m-p/163598#M57400</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/12921/wbekker.html" nodeid="12921"&gt;@Ward Bekker&lt;/A&gt;, Firstly, find out the correct configuration in spark to occupy a full cluster. You will need to tune num of executors, executor cores, memory, driver memory etc.&lt;/P&gt;&lt;P&gt;References: &lt;/P&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/questions/56240/spark-num-executors-setting.html"&gt;https://community.hortonworks.com/questions/56240/spark-num-executors-setting.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/37871194/how-to-tune-spark-executor-number-cores-and-executor-memory"&gt;http://stackoverflow.com/questions/37871194/how-to-tune-spark-executor-number-cores-and-executor-memory&lt;/A&gt;&lt;/P&gt;&lt;P&gt; After figuring out the correct configs, you can use one of the below approaches to set up zeppelin and livy interpreter.&lt;/P&gt;&lt;P&gt;1) You can set SPARK_SUBMIT_OPTIONS in conf/zeppelin-env.sh to specify number of executors, executor cores, memory, driver memory etc . ( This config will be applied on all the spark &amp;amp; livy interpreters )&lt;/P&gt;&lt;PRE&gt;export SPARK_SUBMIT_OPTIONS="--num-executors X --executor-cores Y --executor-memory Z"&lt;/PRE&gt;&lt;P&gt;2) Set configs in livy interpreter. Open livy interpreter page and add below configs in livy interpreter. &lt;/P&gt;&lt;PRE&gt;livy.spark.executor.instances X
livy.spark.executor.cores Y
livy.spark.executor.memory Z&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Mar 2017 03:03:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-increase-amount-of-containers-and-executors-when/m-p/163598#M57400</guid>
      <dc:creator>yvora</dc:creator>
      <dc:date>2017-03-20T03:03:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to increase amount of containers (and executors) when running Spark code via Livy</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-increase-amount-of-containers-and-executors-when/m-p/163599#M57401</link>
      <description>&lt;P&gt;Thx &lt;A rel="user" href="https://community.cloudera.com/users/551/yvora.html" nodeid="551"&gt;@yvora&lt;/A&gt; !&lt;/P&gt;</description>
      <pubDate>Mon, 20 Mar 2017 03:59:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-increase-amount-of-containers-and-executors-when/m-p/163599#M57401</guid>
      <dc:creator>wbekker</dc:creator>
      <dc:date>2017-03-20T03:59:54Z</dc:date>
    </item>
  </channel>
</rss>

