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

    https://github.com/apache/spark/pull/899#discussion_r13418342
  
    --- 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 --
    
    Perhaps the best compromise here is to use reflection?
    
    Check whether those constants exist, and use them if they do. Otherwise 
maintain current behavior. That way someone who has a 2.4-based installation 
will get the benefits, and things will keep working as they do today for those 
who don't.


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