Skip to content

Latest commit

 

History

History
47 lines (31 loc) · 1.67 KB

spark-ExternalClusterManager.adoc

File metadata and controls

47 lines (31 loc) · 1.67 KB

ExternalClusterManager

ExternalClusterManager is a contract for pluggable cluster managers.

It is assumed that ExternalClusterManager implementations are available as Java services (with service markers under META-INF/services directory).

Note
ExternalClusterManager is a private[spark] trait in org.apache.spark.scheduler package.
Note
The only known implementation of the ExternalClusterManager contract in Spark is YarnClusterManager.
Note
SparkContext finds a ExternalClusterManager for a master URL using an internal getClusterManager.

ExternalClusterManager Contract

initialize

initialize(scheduler: TaskScheduler, backend: SchedulerBackend): Unit

canCreate

canCreate(masterURL: String): Boolean

createTaskScheduler

createTaskScheduler(sc: SparkContext, masterURL: String): TaskScheduler

createSchedulerBackend

createSchedulerBackend(sc: SparkContext,
  masterURL: String,
  scheduler: TaskScheduler): SchedulerBackend