Github user tgravescs commented on a diff in the pull request:
https://github.com/apache/spark/pull/154#discussion_r17480000
--- Diff:
yarn/common/src/main/scala/org/apache/spark/deploy/yarn/ClientBase.scala ---
@@ -273,7 +273,7 @@ trait ClientBase extends Logging {
ClientBase.populateClasspath(yarnConf, sparkConf, log4jConfLocalRes !=
null, env)
env("SPARK_YARN_MODE") = "true"
- env("SPARK_YARN_STAGING_DIR") = stagingDir
+ env("SPARK_YARN_STAGING_DIR") =
FileSystem.get(conf).getHomeDirectory() + Path.SEPARATOR + stagingDir
--- End diff --
Since this function already takes the stagingDir as a parameter and since
we have to construct this now in 2 places (here and in prepareLocalResources)
it would be better to pull this up higher and construct it once and pass it in.
---
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]