Skip to content

Commit

Permalink
Support spark.driver.extraJavaOptions (apache#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimoonkim authored and foxish committed Jul 24, 2017
1 parent 3c6eed8 commit c47ce5c
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -173,6 +173,10 @@ private[spark] class KubernetesSparkRestServer(
val driverMemory = resolvedSparkProperties.getOrElse("spark.driver.memory", "1g")
command += s"-Xms$driverMemory"
command += s"-Xmx$driverMemory"
val extraJavaOpts = resolvedSparkProperties.get("spark.driver.extraJavaOptions")
.map(Utils.splitCommandString)
.getOrElse(Seq.empty)
command ++= extraJavaOpts
command += mainClass
command ++= appArgs
val pb = new ProcessBuilder(command: _*).inheritIO()
Expand Down

0 comments on commit c47ce5c

Please sign in to comment.