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

    https://github.com/apache/spark/pull/899#discussion_r17195370
  
    --- 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 --
    
    It seems the only way to special case this is through reflection. Otherwise 
it won't even compile for < 2.4. I'm not sure if we need a config here; it 
seems we can just try to load the `$$` method, and if it's not there we 
fallback to `$`. Same goes for `ApplicationConstants.CLASS_PATH_SEPARATOR`


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