Skip to content
Snippets Groups Projects
Commit 66e1c40c authored by Reynold Xin's avatar Reynold Xin
Browse files

Minor fix for the previous commit.

parent 9966d1a8
No related branches found
No related tags found
No related merge requests found
......@@ -142,9 +142,9 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, actorSystem: A
// Make fake resource offers on all executors
def makeOffers() {
launchTasks(scheduler.resourceOffers(
executorDataMap.map {case (id, executorData) =>
new WorkerOffer(id, executorData.executorHost, executorData.freeCores)}.toSeq))
launchTasks(scheduler.resourceOffers(executorDataMap.map { case (id, executorData) =>
new WorkerOffer(id, executorData.executorHost, executorData.freeCores)
}.toSeq))
}
// Make fake resource offers on just one executor
......
......@@ -20,10 +20,9 @@ package org.apache.spark.scheduler.cluster
import akka.actor.{Address, ActorRef}
/**
* Grouping of data that is accessed by a CourseGrainedScheduler. This class
* is stored in a Map keyed by an executorID
* Grouping of data for an executor used by CoarseGrainedSchedulerBackend.
*
* @param executorActor The actorRef representing this executor
* @param executorActor The ActorRef representing this executor
* @param executorAddress The network address of this executor
* @param executorHost The hostname that this executor is running on
* @param freeCores The current number of cores available for work on the executor
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment