Change the name of input ragument in ClusterScheduler#initialize from context to backend.

The SchedulerBackend used to be called ClusterSchedulerContext so just want to make small
change of the input param in the ClusterScheduler#initialize to reflect this.
This commit is contained in:
Henry Saputra 2013-12-05 18:50:26 -08:00
parent 5d460253d6
commit 1cb259cb57

View file

@ -100,8 +100,8 @@ private[spark] class ClusterScheduler(val sc: SparkContext)
this.dagScheduler = dagScheduler this.dagScheduler = dagScheduler
} }
def initialize(context: SchedulerBackend) { def initialize(backend: SchedulerBackend) {
backend = context this.backend = backend
// temporarily set rootPool name to empty // temporarily set rootPool name to empty
rootPool = new Pool("", schedulingMode, 0, 0) rootPool = new Pool("", schedulingMode, 0, 0)
schedulableBuilder = { schedulableBuilder = {