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

    https://github.com/apache/spark/pull/649#discussion_r12339942
  
    --- Diff: 
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ExecutorRunnableUtil.scala
 ---
    @@ -56,10 +56,16 @@ trait ExecutorRunnableUtil extends Logging {
           JAVA_OPTS += opts
         }
     
    -    JAVA_OPTS += " -Djava.io.tmpdir=" +
    -      new Path(Environment.PWD.$(), 
YarnConfiguration.DEFAULT_CONTAINER_TEMP_DIR) + " "
    +    JAVA_OPTS += "-Djava.io.tmpdir=" +
    +      new Path(Environment.PWD.$(), 
YarnConfiguration.DEFAULT_CONTAINER_TEMP_DIR)
         JAVA_OPTS += ClientBase.getLog4jConfiguration(localResources)
     
    +    // This is needed for the authentication configs because the Executor 
has to
    +    // know whether to use authentication before it registers with the 
Scheduler.
    +    for ((k, v) <- sparkConf.getAll.filter{case (k, v) => 
k.startsWith("spark.auth")}) {
    +      JAVA_OPTS += "-D" + k + "=" + "\\\"" + v + "\\\""
    --- End diff --
    
    that line doesn't work. I assume the \" is being picked up as regular "
    
    scala> JAVA_OPTS += s"-D${k}=\"${v}\""
    <console>:12: error: value $ is not a member of String
                  JAVA_OPTS += s"-D${k}=\"${v}\""


---
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 infrastruct...@apache.org or file a JIRA ticket
with INFRA.
---

Reply via email to