@@ -21,7 +21,7 @@ import java.nio.ByteBuffer
2121
2222import akka .actor .{Actor , ActorRef , Props }
2323
24- import org .apache .spark .{Logging , SparkConf , SparkContext , SparkEnv , TaskState }
24+ import org .apache .spark .{Logging , SparkContext , SparkEnv , TaskState }
2525import org .apache .spark .TaskState .TaskState
2626import org .apache .spark .executor .{Executor , ExecutorBackend }
2727import org .apache .spark .scheduler .{SchedulerBackend , TaskSchedulerImpl , WorkerOffer }
@@ -43,7 +43,6 @@ private case class StopExecutor()
4343private [spark] class LocalActor (
4444 scheduler : TaskSchedulerImpl ,
4545 executorBackend : LocalBackend ,
46- conf : SparkConf ,
4746 private val totalCores : Int )
4847 extends Actor with ActorLogReceive with Logging {
4948
@@ -53,7 +52,7 @@ private[spark] class LocalActor(
5352 private val localExecutorHostname = " localhost"
5453
5554 private val executor = new Executor (
56- localExecutorId, localExecutorHostname, SparkEnv .get, conf, isLocal = true )
55+ localExecutorId, localExecutorHostname, SparkEnv .get, isLocal = true )
5756
5857 override def receiveWithLogging = {
5958 case ReviveOffers =>
@@ -92,12 +91,11 @@ private[spark] class LocalBackend(scheduler: TaskSchedulerImpl, val totalCores:
9291 extends SchedulerBackend with ExecutorBackend {
9392
9493 private val appId = " local-" + System .currentTimeMillis
95- private val conf = SparkEnv .get.conf.clone()
9694 var localActor : ActorRef = null
9795
9896 override def start () {
9997 localActor = SparkEnv .get.actorSystem.actorOf(
100- Props (new LocalActor (scheduler, this , conf, totalCores)),
98+ Props (new LocalActor (scheduler, this , totalCores)),
10199 " LocalBackendActor" )
102100 }
103101
0 commit comments