Skip to content
Snippets Groups Projects
Unverified Commit 9b377aa4 authored by Wang Lei's avatar Wang Lei Committed by Sean Owen
Browse files

[SPARK-18114][MESOS] Fix mesos cluster scheduler generage command option error

## What changes were proposed in this pull request?

Enclose --conf option value with "" to support multi value configs like spark.driver.extraJavaOptions, without "", driver will fail to start.
## How was this patch tested?

Jenkins Tests.

Test in our production environment, also unit tests, It is a very small change.

Author: Wang Lei <lei.wang@kongming-inc.com>

Closes #15643 from LeightonWong/messos-cluster.
parent ec6f479b
No related branches found
No related tags found
No related merge requests found
......@@ -482,7 +482,7 @@ private[spark] class MesosClusterScheduler(
.filter { case (key, _) => !replicatedOptionsBlacklist.contains(key) }
.toMap
(defaultConf ++ driverConf).foreach { case (key, value) =>
options ++= Seq("--conf", s"$key=${shellEscape(value)}") }
options ++= Seq("--conf", s""""$key=${shellEscape(value)}"""".stripMargin) }
options
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment