Skip to content

Commit

Permalink
Code style, rename configuration property name of minRegisteredRatio …
Browse files Browse the repository at this point in the history
…& maxRegisteredWaitingTime
  • Loading branch information
li-zhihui committed Jun 23, 2014
1 parent 6cfb9ec commit ce0868a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
Expand Up @@ -50,8 +50,8 @@ class CoarseGrainedSchedulerBackend(scheduler: TaskSchedulerImpl, actorSystem: A
val conf = scheduler.sc.conf
private val timeout = AkkaUtils.askTimeout(conf)
private val akkaFrameSize = AkkaUtils.maxFrameSizeBytes(conf)
var minRegisteredRatio = conf.getDouble("spark.scheduler.minRegisteredRatio", 0)
val maxRegisteredWaitingTime = conf.getInt("spark.scheduler.maxRegisteredWaitingTime", 10000)
var minRegisteredRatio = conf.getDouble("spark.scheduler.minRegisteredExecutorsRatio", 0)
val maxRegisteredWaitingTime = conf.getInt("spark.scheduler.maxRegisteredExecutorsWaitingTime", 30000)
val createTime = System.currentTimeMillis()
var ready = if (minRegisteredRatio <= 0) true else false

Expand Down
Expand Up @@ -17,20 +17,19 @@

package org.apache.spark.scheduler.cluster

import scala.collection.mutable.ArrayBuffer

import org.apache.spark.{Logging, SparkContext}
import org.apache.spark.deploy.yarn.ApplicationMasterArguments
import org.apache.spark.scheduler.TaskSchedulerImpl

import scala.collection.mutable.ArrayBuffer

private[spark] class YarnClusterSchedulerBackend(
scheduler: TaskSchedulerImpl,
sc: SparkContext)
extends CoarseGrainedSchedulerBackend(scheduler, sc.env.actorSystem)
with Logging {

private[spark] def addArg(optionName: String, envVar: String, sysProp: String,
private def addArg(optionName: String, envVar: String, sysProp: String,
arrayBuf: ArrayBuffer[String]) {
if (System.getenv(envVar) != null) {
arrayBuf += (optionName, System.getenv(envVar))
Expand Down

0 comments on commit ce0868a

Please sign in to comment.