poiuytrez
poiuytrez

Reputation: 22546

Are failed tasks resubmitted in Apache Spark?

Are failed tasks automatically resubmitted in Apache Spark to the same or another executor?

Upvotes: 28

Views: 19673

Answers (2)

chanllen
chanllen

Reputation: 336

Yes, but there is a parameter set for the max number of failures

spark.task.maxFailures  4   Number of individual task failures before giving up on the job. Should be greater than or equal to 1. Number of allowed retries = this value - 1.

Upvotes: 26

poiuytrez
poiuytrez

Reputation: 22546

I believe failed tasks are resubmitted because I have seen the same failed task submitted multiple times on the Web UI. However, if the same task fails multiple times, the full job fail:

org.apache.spark.SparkException: Job aborted due to stage failure: Task 120 in stage 91.0 failed 4 times, most recent failure: Lost task 120.3 in stage 91.0

Upvotes: 21

Related Questions