Skip to content
Snippets Groups Projects
Commit a402b23b authored by Mridul Muralidharan's avatar Mridul Muralidharan
Browse files

Fudge order of classpath - so that our jars take precedence over what is in...

Fudge order of classpath - so that our jars take precedence over what is in CLASSPATH variable. Sounds logical, hope there is no issue cos of it
parent bcdde331
No related branches found
No related tags found
No related merge requests found
......@@ -165,8 +165,8 @@ class Client(conf: Configuration, args: ClientArguments) extends Logging {
// If log4j present, ensure ours overrides all others
if (log4jConfLocalRes != null) Apps.addToEnvironment(env, Environment.CLASSPATH.name, "./")
Apps.addToEnvironment(env, Environment.CLASSPATH.name, "$CLASSPATH")
Apps.addToEnvironment(env, Environment.CLASSPATH.name, "./*")
Apps.addToEnvironment(env, Environment.CLASSPATH.name, "$CLASSPATH")
Client.populateHadoopClasspath(yarnConf, env)
SparkHadoopUtil.setYarnMode(env)
env("SPARK_YARN_JAR_PATH") =
......
......@@ -153,8 +153,8 @@ class WorkerRunnable(container: Container, conf: Configuration, masterAddress: S
Apps.addToEnvironment(env, Environment.CLASSPATH.name, "./")
}
Apps.addToEnvironment(env, Environment.CLASSPATH.name, "$CLASSPATH")
Apps.addToEnvironment(env, Environment.CLASSPATH.name, "./*")
Apps.addToEnvironment(env, Environment.CLASSPATH.name, "$CLASSPATH")
Client.populateHadoopClasspath(yarnConf, env)
System.getenv().filterKeys(_.startsWith("SPARK")).foreach { case (k,v) => env(k) = v }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment