Skip to content

Commit

Permalink
Additional changes for yarn memory overhead issue
Browse files Browse the repository at this point in the history
  • Loading branch information
nishkamravi2 committed Sep 25, 2014
1 parent 362da5e commit 42c2c3d
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -33,6 +33,7 @@ import org.apache.spark.scheduler.{SplitInfo, TaskSchedulerImpl}
import org.apache.spark.scheduler.cluster.CoarseGrainedSchedulerBackend

import com.google.common.util.concurrent.ThreadFactoryBuilder
import org.apache.spark.deploy.yarn.YarnSparkHadoopUtil._

object AllocationType extends Enumeration {
type AllocationType = Value
Expand Down Expand Up @@ -95,8 +96,7 @@ private[yarn] abstract class YarnAllocator(

// Additional memory overhead - in mb.
protected val memoryOverhead: Int = sparkConf.getInt("spark.yarn.executor.memoryOverhead",
math.max((YarnSparkHadoopUtil.MEMORY_OVERHEAD_FACTOR * executorMemory).toInt,
YarnSparkHadoopUtil.MEMORY_OVERHEAD_MIN))
math.max((MEMORY_OVERHEAD_FACTOR * executorMemory).toInt, MEMORY_OVERHEAD_MIN))

private val launcherPool = new ThreadPoolExecutor(
// max pool size of Integer.MAX_VALUE is ignored because we use an unbounded queue
Expand Down

0 comments on commit 42c2c3d

Please sign in to comment.