Github user vanzin commented on a diff in the pull request:
https://github.com/apache/spark/pull/6752#discussion_r32243713
--- Diff: yarn/src/main/scala/org/apache/spark/deploy/yarn/Client.scala ---
@@ -1179,8 +1182,35 @@ object Client extends Logging {
* Add the given path to the classpath entry of the given environment
map.
* If the classpath is already set, this appends the new path to the
existing classpath.
*/
- private def addClasspathEntry(path: String, env: HashMap[String,
String]): Unit =
- YarnSparkHadoopUtil.addPathToEnvironment(env,
Environment.CLASSPATH.name, path)
+ private def addClasspathEntry(
+ conf: SparkConf,
+ path: String,
+ env: HashMap[String, String]): Unit =
+ YarnSparkHadoopUtil.addPathToEnvironment(env,
Environment.CLASSPATH.name,
+ getClusterPath(conf, path))
--- End diff --
I think it should be safe, because it's very unlikely that those paths
would contain the string being replaced, but I see your point. Let me take a
look.
---
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]