Github user jayv commented on a diff in the pull request:

    https://github.com/apache/spark/pull/10370#discussion_r48311266
  
    --- Diff: 
core/src/main/scala/org/apache/spark/scheduler/cluster/mesos/MesosClusterScheduler.scala
 ---
    @@ -440,6 +444,9 @@ private[spark] class MesosClusterScheduler(
             .mkString(",")
           options ++= Seq("--py-files", formattedFiles)
         }
    +    desc.schedulerProperties
    +      .filter { case (key, _) => !replicatedOptionsBlacklist.contains(key) 
}
    +      .foreach { case (key, value) => options ++= Seq("--conf", Seq(key, 
"=\"", value, "\"").mkString("")) }
    --- End diff --
    
    Yes, the quotes work for me.
    
    In order to pass multiple system properties via eg 
`spark.driver.extraJavaOptions`, I passed the arg in quotes on the shell to 
spark-submit, but the value itself doesn't have quotes around it and ends up 
broken on the commandline for the driver, unless I add escaped quotes inside 
the string.
    
    So this fails when executing the driver, but spark-submit accepts the 
command:
    ```
    bin/spark-submit [...] 
spark.driver.extraJavaOptions="-Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true
 -Dorg.jboss.weld.bootstrap.concurrentDeployment=false" [...]
    ```
    This doesn't look very intuitive to me, but it does work without wrapping 
values in quotes:
    ```
    bin/spark-submit [...] 
spark.driver.extraJavaOptions="\"-Dcom.sun.jersey.server.impl.cdi.lookupExtensionInBeanManager=true
 -Dorg.jboss.weld.bootstrap.concurrentDeployment=false\"" [...]
    ```
    
    String interpolation doesn't support double quotes, but I've since learned 
about triple-double-quoted string interpolation, that why I initially went with 
`Seq.mkString`.


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to