executor的状态

spark executor一共有6种状态:

  1. launching
  2. running
  3. killed
  4. failed
  5. lost
  6. exited
一个executor如果处于下列四种状态之一,则executor结束:
  1. killed
  2. failed
  3. lost
  4. exited
package org.apache.spark.deploy

private[deploy] object ExecutorState extends Enumeration {

  val LAUNCHING, RUNNING, KILLED, FAILED, LOST, EXITED = Value

  type ExecutorState = Value

  def isFinished(state: ExecutorState): Boolean = Seq(KILLED, FAILED, LOST, EXITED).contains(state)
}



你可能感兴趣的:(executor的状态)