<?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 many number of executors will be created for a spark application? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-many-number-of-executors-will-be-created-for-a-spark/m-p/186504#M148606</link>
    <description>&lt;P&gt;If you are running on cluster mode, you need to set the number of executors while submitting the JAR or you can manually enter it in the code. The former way is better&lt;/P&gt;&lt;PRE&gt;spark-submit \
--master yarn-cluster \
--class com.yourCompany.code \
--executor-memory 32G \
--num-executors 5 \
--driver-memory 4g \
--executor-cores 3 \
--queue parsons \
YourJARfile.jar \

&lt;/PRE&gt;&lt;P&gt;If running locally,&lt;/P&gt;&lt;PRE&gt;spark-shell --master yarn --num-executors 6  --driver-memory 5g --executor-memory 7g&lt;/PRE&gt;</description>
    <pubDate>Tue, 04 Apr 2017 22:49:35 GMT</pubDate>
    <dc:creator>adnanalvee</dc:creator>
    <dc:date>2017-04-04T22:49:35Z</dc:date>
  </channel>
</rss>

