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

    https://github.com/apache/spark/pull/299#discussion_r11720080
  
    --- Diff: 
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
    @@ -333,15 +325,29 @@ trait ClientBase extends Logging {
         if (useConcurrentAndIncrementalGC) {
           // In our expts, using (default) throughput collector has severe 
perf ramifications in
           // multi-tenant machines
    -      JAVA_OPTS += " -XX:+UseConcMarkSweepGC "
    -      JAVA_OPTS += " -XX:+CMSIncrementalMode "
    -      JAVA_OPTS += " -XX:+CMSIncrementalPacing "
    -      JAVA_OPTS += " -XX:CMSIncrementalDutyCycleMin=0 "
    -      JAVA_OPTS += " -XX:CMSIncrementalDutyCycle=10 "
    +      JAVA_OPTS += "-XX:+UseConcMarkSweepGC"
    +      JAVA_OPTS += "-XX:+CMSIncrementalMode"
    +      JAVA_OPTS += "-XX:+CMSIncrementalPacing"
    +      JAVA_OPTS += "-XX:CMSIncrementalDutyCycleMin=0"
    +      JAVA_OPTS += "-XX:CMSIncrementalDutyCycle=10"
         }
     
    -    if (env.isDefinedAt("SPARK_JAVA_OPTS")) {
    -      JAVA_OPTS += " " + env("SPARK_JAVA_OPTS")
    +    // TODO: it might be nicer to pass these as an internal environment 
variable rather than
    +    // as Java options, due to complications with string parsing of nested 
quotes.
    +    if (args.amClass == classOf[ExecutorLauncher].getName) {
    +      // If we are being launched in client mode, forward the spark-conf 
options
    +      // onto the executor launcher
    +      for ((k, v) <- sparkConf.getAll) {
    +        JAVA_OPTS += "-D" + k + "=" + "\\\"" + v + "\\\""
    --- End diff --
    
    Do you need a space before `-D`? Otherwise when you string them together, 
it'll be squished into one giant string without spaces.


---
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.
---

Reply via email to