Skip to content
Snippets Groups Projects
Commit 1efe3adf authored by Kay Ousterhout's avatar Kay Ousterhout
Browse files

Responded to Reynold's style comments

parent b7bfae1a
No related branches found
No related tags found
No related merge requests found
......@@ -46,9 +46,10 @@ import org.apache.spark.scheduler.SchedulingMode.SchedulingMode
* we are holding a lock on ourselves.
*/
private[spark] class TaskSchedulerImpl(
val sc: SparkContext,
val maxTaskFailures : Int = System.getProperty("spark.task.maxFailures", "4").toInt,
isLocal: Boolean = false) extends TaskScheduler with Logging {
val sc: SparkContext,
val maxTaskFailures : Int = System.getProperty("spark.task.maxFailures", "4").toInt,
isLocal: Boolean = false)
extends TaskScheduler with Logging {
// How often to check for speculative tasks
val SPECULATION_INTERVAL = System.getProperty("spark.speculation.interval", "100").toLong
......
......@@ -17,6 +17,7 @@
package org.apache.spark.scheduler
import java.io.NotSerializableException
import java.util.Arrays
import scala.collection.mutable.ArrayBuffer
......@@ -28,8 +29,7 @@ import scala.math.min
import org.apache.spark.{ExceptionFailure, FetchFailed, Logging, Resubmitted, SparkEnv,
Success, TaskEndReason, TaskKilled, TaskResultLost, TaskState}
import org.apache.spark.TaskState.TaskState
import org.apache.spark.util.{SystemClock, Clock}
import java.io.NotSerializableException
import org.apache.spark.util.{Clock, SystemClock}
/**
......
......@@ -93,7 +93,7 @@ private[spark] class LocalBackend(scheduler: TaskSchedulerImpl, val totalCores:
}
override def reviveOffers() {
localActor ! ReviveOffers
localActor ! ReviveOffers
}
override def defaultParallelism() = totalCores
......
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