Skip to content

Commit

Permalink
Support spark.driver.extraJavaOptions (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
kimoonkim authored and ash211 committed Mar 8, 2017
1 parent b98c852 commit 27f3005
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 27f3005

Please sign in to comment.