Skip to content

Commit 2cd446a

Browse files
XuTingjuntgravescs
authored andcommitted
[SPARK-4966][YARN]The MemoryOverhead value is setted not correctly
Author: meiyoula <[email protected]> Closes #3797 from XuTingjun/MemoryOverhead and squashes the following commits: 5a780fc [meiyoula] Update ClientArguments.scala (cherry picked from commit 14fa87b) Signed-off-by: Thomas Graves <[email protected]>
1 parent 23d64cf commit 2cd446a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

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

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ private[spark] class ClientArguments(args: Array[String], sparkConf: SparkConf)
3939
var appName: String = "Spark"
4040
var priority = 0
4141

42+
parseArgs(args.toList)
43+
4244
// Additional memory to allocate to containers
4345
// For now, use driver's memory overhead as our AM container's memory overhead
4446
val amMemoryOverhead = sparkConf.getInt("spark.yarn.driver.memoryOverhead",
@@ -50,7 +52,6 @@ private[spark] class ClientArguments(args: Array[String], sparkConf: SparkConf)
5052
private val isDynamicAllocationEnabled =
5153
sparkConf.getBoolean("spark.dynamicAllocation.enabled", false)
5254

53-
parseArgs(args.toList)
5455
loadEnvironmentArgs()
5556
validateArgs()
5657

0 commit comments

Comments
 (0)