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

    https://github.com/apache/spark/pull/899#discussion_r13124009
  
    --- Diff: 
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
    @@ -309,7 +310,7 @@ trait ClientBase extends Logging {
         // Add Xmx for AM memory
         JAVA_OPTS += "-Xmx" + amMemory + "m"
     
    -    val tmpDir = new Path(Environment.PWD.$(), 
YarnConfiguration.DEFAULT_CONTAINER_TEMP_DIR)
    +    val tmpDir = new Path(Environment.PWD.$$(), 
YarnConfiguration.DEFAULT_CONTAINER_TEMP_DIR)
    --- End diff --
    
    This is similar to  ApplicationConstants.CLASS_PATH_SEPARATOR.
    $$() wraps the string with "{{" and "}}", rather than 'hardcoding' "%" or 
"$" as is done by $().
    And the cluster replaces it with the real script variable marker when it 
finds the "{{" and "}}" pair.


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