Skip to content

Commit

Permalink
Respect SPARK_*_MEMORY for cluster mode
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewor14 committed Sep 23, 2014
1 parent f9d6220 commit 6217b38
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,10 @@ private[spark] class SparkSubmitArguments(args: Seq[String]) {
defaultProperties
}

// Respect SPARK_*_MEMORY for cluster mode
driverMemory = sys.env.get("SPARK_DRIVER_MEMORY").orNull
executorMemory = sys.env.get("SPARK_EXECUTOR_MEMORY").orNull

parseOpts(args.toList)
mergeSparkProperties()
checkRequiredArguments()
Expand Down

0 comments on commit 6217b38

Please sign in to comment.