Packages

c

org.apache.spark.scheduler

SparkListener

abstract class SparkListener extends SparkListenerInterface

Developer API

A default implementation for SparkListenerInterface that has no-op implementations for all callbacks.

Note that this is an internal interface which might change in different Spark releases.

Annotations
@DeveloperApi()
Source
SparkListener.scala
Linear Supertypes
SparkListenerInterface, AnyRef, Any
Known Subclasses
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. SparkListener
  2. SparkListenerInterface
  3. AnyRef
  4. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new SparkListener()

Value Members

  1. def onApplicationEnd(applicationEnd: SparkListenerApplicationEnd): Unit

    Called when the application ends

    Called when the application ends

    Definition Classes
    SparkListener → SparkListenerInterface
  2. def onApplicationStart(applicationStart: SparkListenerApplicationStart): Unit

    Called when the application starts

    Called when the application starts

    Definition Classes
    SparkListener → SparkListenerInterface
  3. def onBlockManagerAdded(blockManagerAdded: SparkListenerBlockManagerAdded): Unit

    Called when a new block manager has joined

    Called when a new block manager has joined

    Definition Classes
    SparkListener → SparkListenerInterface
  4. def onBlockManagerRemoved(blockManagerRemoved: SparkListenerBlockManagerRemoved): Unit

    Called when an existing block manager has been removed

    Called when an existing block manager has been removed

    Definition Classes
    SparkListener → SparkListenerInterface
  5. def onBlockUpdated(blockUpdated: SparkListenerBlockUpdated): Unit

    Called when the driver receives a block update info.

    Called when the driver receives a block update info.

    Definition Classes
    SparkListener → SparkListenerInterface
  6. def onEnvironmentUpdate(environmentUpdate: SparkListenerEnvironmentUpdate): Unit

    Called when environment properties have been updated

    Called when environment properties have been updated

    Definition Classes
    SparkListener → SparkListenerInterface
  7. def onExecutorAdded(executorAdded: SparkListenerExecutorAdded): Unit

    Called when the driver registers a new executor.

    Called when the driver registers a new executor.

    Definition Classes
    SparkListener → SparkListenerInterface
  8. def onExecutorBlacklisted(executorBlacklisted: SparkListenerExecutorBlacklisted): Unit

    Called when the driver excludes an executor for a Spark application.

    Called when the driver excludes an executor for a Spark application.

    Definition Classes
    SparkListener → SparkListenerInterface
  9. def onExecutorBlacklistedForStage(executorBlacklistedForStage: SparkListenerExecutorBlacklistedForStage): Unit

    Called when the driver excludes an executor for a stage.

    Called when the driver excludes an executor for a stage.

    Definition Classes
    SparkListener → SparkListenerInterface
  10. def onExecutorExcluded(executorExcluded: SparkListenerExecutorExcluded): Unit

    Called when the driver excludes an executor for a Spark application.

    Called when the driver excludes an executor for a Spark application.

    Definition Classes
    SparkListener → SparkListenerInterface
  11. def onExecutorExcludedForStage(executorExcludedForStage: SparkListenerExecutorExcludedForStage): Unit

    Called when the driver excludes an executor for a stage.

    Called when the driver excludes an executor for a stage.

    Definition Classes
    SparkListener → SparkListenerInterface
  12. def onExecutorMetricsUpdate(executorMetricsUpdate: SparkListenerExecutorMetricsUpdate): Unit

    Called when the driver receives task metrics from an executor in a heartbeat.

    Called when the driver receives task metrics from an executor in a heartbeat.

    Definition Classes
    SparkListener → SparkListenerInterface
  13. def onExecutorRemoved(executorRemoved: SparkListenerExecutorRemoved): Unit

    Called when the driver removes an executor.

    Called when the driver removes an executor.

    Definition Classes
    SparkListener → SparkListenerInterface
  14. def onExecutorUnblacklisted(executorUnblacklisted: SparkListenerExecutorUnblacklisted): Unit

    Called when the driver re-enables a previously excluded executor.

    Called when the driver re-enables a previously excluded executor.

    Definition Classes
    SparkListener → SparkListenerInterface
  15. def onExecutorUnexcluded(executorUnexcluded: SparkListenerExecutorUnexcluded): Unit

    Called when the driver re-enables a previously excluded executor.

    Called when the driver re-enables a previously excluded executor.

    Definition Classes
    SparkListener → SparkListenerInterface
  16. def onJobEnd(jobEnd: SparkListenerJobEnd): Unit

    Called when a job ends

    Called when a job ends

    Definition Classes
    SparkListener → SparkListenerInterface
  17. def onJobStart(jobStart: SparkListenerJobStart): Unit

    Called when a job starts

    Called when a job starts

    Definition Classes
    SparkListener → SparkListenerInterface
  18. def onNodeBlacklisted(nodeBlacklisted: SparkListenerNodeBlacklisted): Unit

    Called when the driver excludes a node for a Spark application.

    Called when the driver excludes a node for a Spark application.

    Definition Classes
    SparkListener → SparkListenerInterface
  19. def onNodeBlacklistedForStage(nodeBlacklistedForStage: SparkListenerNodeBlacklistedForStage): Unit

    Called when the driver excludes a node for a stage.

    Called when the driver excludes a node for a stage.

    Definition Classes
    SparkListener → SparkListenerInterface
  20. def onNodeExcluded(nodeExcluded: SparkListenerNodeExcluded): Unit

    Called when the driver excludes a node for a Spark application.

    Called when the driver excludes a node for a Spark application.

    Definition Classes
    SparkListener → SparkListenerInterface
  21. def onNodeExcludedForStage(nodeExcludedForStage: SparkListenerNodeExcludedForStage): Unit

    Called when the driver excludes a node for a stage.

    Called when the driver excludes a node for a stage.

    Definition Classes
    SparkListener → SparkListenerInterface
  22. def onNodeUnblacklisted(nodeUnblacklisted: SparkListenerNodeUnblacklisted): Unit

    Called when the driver re-enables a previously excluded node.

    Called when the driver re-enables a previously excluded node.

    Definition Classes
    SparkListener → SparkListenerInterface
  23. def onNodeUnexcluded(nodeUnexcluded: SparkListenerNodeUnexcluded): Unit

    Called when the driver re-enables a previously excluded node.

    Called when the driver re-enables a previously excluded node.

    Definition Classes
    SparkListener → SparkListenerInterface
  24. def onOtherEvent(event: SparkListenerEvent): Unit

    Called when other events like SQL-specific events are posted.

    Called when other events like SQL-specific events are posted.

    Definition Classes
    SparkListener → SparkListenerInterface
  25. def onResourceProfileAdded(event: SparkListenerResourceProfileAdded): Unit

    Called when a Resource Profile is added to the manager.

    Called when a Resource Profile is added to the manager.

    Definition Classes
    SparkListener → SparkListenerInterface
  26. def onSpeculativeTaskSubmitted(speculativeTask: SparkListenerSpeculativeTaskSubmitted): Unit

    Called when a speculative task is submitted

    Called when a speculative task is submitted

    Definition Classes
    SparkListener → SparkListenerInterface
  27. def onStageCompleted(stageCompleted: SparkListenerStageCompleted): Unit

    Called when a stage completes successfully or fails, with information on the completed stage.

    Called when a stage completes successfully or fails, with information on the completed stage.

    Definition Classes
    SparkListener → SparkListenerInterface
  28. def onStageExecutorMetrics(executorMetrics: SparkListenerStageExecutorMetrics): Unit

    Called with the peak memory metrics for a given (executor, stage) combination.

    Called with the peak memory metrics for a given (executor, stage) combination. Note that this is only present when reading from the event log (as in the history server), and is never called in a live application.

    Definition Classes
    SparkListener → SparkListenerInterface
  29. def onStageSubmitted(stageSubmitted: SparkListenerStageSubmitted): Unit

    Called when a stage is submitted

    Called when a stage is submitted

    Definition Classes
    SparkListener → SparkListenerInterface
  30. def onTaskEnd(taskEnd: SparkListenerTaskEnd): Unit

    Called when a task ends

    Called when a task ends

    Definition Classes
    SparkListener → SparkListenerInterface
  31. def onTaskGettingResult(taskGettingResult: SparkListenerTaskGettingResult): Unit

    Called when a task begins remotely fetching its result (will not be called for tasks that do not need to fetch the result remotely).

    Called when a task begins remotely fetching its result (will not be called for tasks that do not need to fetch the result remotely).

    Definition Classes
    SparkListener → SparkListenerInterface
  32. def onTaskStart(taskStart: SparkListenerTaskStart): Unit

    Called when a task starts

    Called when a task starts

    Definition Classes
    SparkListener → SparkListenerInterface
  33. def onUnpersistRDD(unpersistRDD: SparkListenerUnpersistRDD): Unit

    Called when an RDD is manually unpersisted by the application

    Called when an RDD is manually unpersisted by the application

    Definition Classes
    SparkListener → SparkListenerInterface
  34. def onUnschedulableTaskSetAdded(unschedulableTaskSetAdded: SparkListenerUnschedulableTaskSetAdded): Unit

    Called when a taskset becomes unschedulable due to exludeOnFailure and dynamic allocation is enabled.

    Called when a taskset becomes unschedulable due to exludeOnFailure and dynamic allocation is enabled.

    Definition Classes
    SparkListener → SparkListenerInterface
  35. def onUnschedulableTaskSetRemoved(unschedulableTaskSetRemoved: SparkListenerUnschedulableTaskSetRemoved): Unit

    Called when an unschedulable taskset becomes schedulable and dynamic allocation is enabled.

    Called when an unschedulable taskset becomes schedulable and dynamic allocation is enabled.

    Definition Classes
    SparkListener → SparkListenerInterface