Skip to content

Commit e3c531d

Browse files
committed
review commit
1 parent e16f190 commit e3c531d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ trait ClientBase extends Logging {
6767

6868
// Additional memory overhead - in mb.
6969
protected def memoryOverhead: Int = {
70-
var defaultMemoryOverhead = (args.amMemory * 0.25D).ceil.toInt
70+
var defaultMemoryOverhead = YarnAllocationHandler.MEMORY_OVERHEAD
7171
sparkConf.getOption("spark.yarn.container.memoryOverhead").foreach { s =>
7272
defaultMemoryOverhead = s.toInt
7373
}

0 commit comments

Comments
 (0)