Remove idle executor automatically

0 votes
I want to configure my application such that if an executor has been idle for more than a particular time, then it should be removed. Is this possible?
Mar 12, 2019 in Apache Spark by Suman
1,212 views

1 answer to this question.

0 votes

Yes, it is possible and is already enabled. I don't think you have observed but when an executor is idle for more than 60s, it is automatically removed. This is means that the default time set is 60s. You can change it like this:

val sc = new SparkContext(new SparkConf())
./bin/spark-submit <all your existing options> --spark.dynamicAllocation.executorIdleTimeout= <new time>
answered Mar 12, 2019 by Veer

Related Questions In Apache Spark

0 votes
1 answer

What is Executor Memory in a Spark application?

Every spark application has same fixed heap ...READ MORE

answered Jan 5, 2019 in Apache Spark by Frankie
• 9,830 points
6,199 views
0 votes
1 answer

How can I remove headers from dataframe?

You can use filter to do this. ...READ MORE

answered Feb 15, 2019 in Apache Spark by Aryan
19,596 views
0 votes
1 answer

How to make driver update metrics quickly to executor?

There's a heartbeat signal sent to the ...READ MORE

answered Mar 10, 2019 in Apache Spark by Siri
520 views
0 votes
1 answer

How to disable executor from fetching file from cache?

When a Spark application is running, the ...READ MORE

answered Mar 10, 2019 in Apache Spark by Siri
2,088 views
0 votes
1 answer

Changing the blacklist time of executor

By default, the node or executor is ...READ MORE

answered Mar 12, 2019 in Apache Spark by Raj
1,018 views
+1 vote
2 answers
+1 vote
1 answer

Hadoop Mapreduce word count Program

Firstly you need to understand the concept ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
10,602 views
0 votes
1 answer

hadoop.mapred vs hadoop.mapreduce?

org.apache.hadoop.mapred is the Old API  org.apache.hadoop.mapreduce is the ...READ MORE

answered Mar 16, 2018 in Data Analytics by nitinrawat895
• 11,380 points
2,207 views
+2 votes
11 answers

hadoop fs -put command?

Hi, You can create one directory in HDFS ...READ MORE

answered Mar 16, 2018 in Big Data Hadoop by nitinrawat895
• 11,380 points
104,777 views
0 votes
1 answer

Dynamic allocation: Set minimum number of executor

You cans et it dynamically like this:  val ...READ MORE

answered Mar 13, 2019 in Apache Spark by Venu
426 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP