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 in Apache Spark by Suman
11 views

1 answer to this question.

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
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 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 4 in Apache Spark by Frankie
• 9,570 points
92 views
0 votes
1 answer

How can I remove headers from dataframe?

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

answered Feb 14 in Apache Spark by Aryan
66 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 in Apache Spark by Siri
6 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 in Apache Spark by Siri
38 views
0 votes
1 answer

Changing the blacklist time of executor

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

answered Mar 11 in Apache Spark by Raj
28 views
0 votes
0 answers
0 votes
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
• 9,030 points
1,657 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
• 9,030 points
130 views
0 votes
10 answers

hadoop fs -put command?

copy command can be used to copy files ...READ MORE

answered Dec 7, 2018 in Big Data Hadoop by Sujay
8,040 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 in Apache Spark by Venu
5 views

© 2018 Brain4ce Education Solutions Pvt. Ltd. All rights Reserved.
"PMP®","PMI®", "PMI-ACP®" and "PMBOK®" are registered marks of the Project Management Institute, Inc. MongoDB®, Mongo and the leaf logo are the registered trademarks of MongoDB, Inc.