Package org.apache.spark
Class TaskKilled
Object
org.apache.spark.TaskKilled
- All Implemented Interfaces:
Serializable
,TaskEndReason
,TaskFailedReason
,scala.Equals
,scala.Product
,scala.Serializable
public class TaskKilled
extends Object
implements TaskFailedReason, scala.Product, scala.Serializable
:: DeveloperApi ::
Task was killed intentionally and needs to be rescheduled.
- See Also:
-
Constructor Summary
ConstructorDescriptionTaskKilled
(String reason, scala.collection.Seq<AccumulableInfo> accumUpdates, scala.collection.Seq<AccumulatorV2<?, ?>> accums, scala.collection.Seq<Object> metricPeaks) -
Method Summary
Modifier and TypeMethodDescriptionscala.collection.Seq<AccumulableInfo>
abstract static R
apply
(T1 v1, T2 v2, T3 v3, T4 v4) boolean
Whether this task failure should be counted towards the maximum number of times the task is allowed to fail before the stage is aborted.scala.collection.Seq<Object>
reason()
Error message displayed in the web UI.static String
toString()
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface scala.Equals
canEqual, equals
Methods inherited from interface scala.Product
productArity, productElement, productIterator, productPrefix
-
Constructor Details
-
TaskKilled
public TaskKilled(String reason, scala.collection.Seq<AccumulableInfo> accumUpdates, scala.collection.Seq<AccumulatorV2<?, ?>> accums, scala.collection.Seq<Object> metricPeaks)
-
-
Method Details
-
apply
public abstract static R apply(T1 v1, T2 v2, T3 v3, T4 v4) -
toString
-
reason
-
accumUpdates
-
metricPeaks
-
toErrorString
Description copied from interface:TaskFailedReason
Error message displayed in the web UI.- Specified by:
toErrorString
in interfaceTaskFailedReason
-
countTowardsTaskFailures
public boolean countTowardsTaskFailures()Description copied from interface:TaskFailedReason
Whether this task failure should be counted towards the maximum number of times the task is allowed to fail before the stage is aborted. Set to false in cases where the task's failure was unrelated to the task; for example, if the task failed because the executor it was running on was killed.- Specified by:
countTowardsTaskFailures
in interfaceTaskFailedReason
- Returns:
- (undocumented)
-