Github user zeodtr commented on a diff in the pull request:
https://github.com/apache/spark/pull/899#discussion_r17338037
--- 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 --
@andrewor14 What I meant for hard-coding is to use string value "{{" and
"}}" directly without event calling $$() in the Spark code when Hadoop version
is >= 2.4 (or config is set). But I agree that the reflection is cleaner
solution.
---
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]