Skip to content

Commit

Permalink
Fix compilation on Hadoop 2.4.x.
Browse files Browse the repository at this point in the history
Author: Marcelo Vanzin <[email protected]>

Closes #483 from vanzin/yarn-2.4 and squashes the following commits:

0fc57d8 [Marcelo Vanzin] Fix compilation on Hadoop 2.4.x.
  • Loading branch information
Marcelo Vanzin authored and pwendell committed Apr 22, 2014
1 parent 745e496 commit 0ea0b1a
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -458,7 +458,8 @@ object ClientBase {
}

/** Add entry to the classpath. */
def addClasspathEntry(path: String) = Apps.addToEnvironment(env, Environment.CLASSPATH.name, path)
def addClasspathEntry(path: String) = YarnSparkHadoopUtil.addToEnvironment(env,
Environment.CLASSPATH.name, path, File.pathSeparator)
/** Add entry to the classpath. Interpreted as a path relative to the working directory. */
def addPwdClasspathEntry(entry: String) = addClasspathEntry(Environment.PWD.$() + Path.SEPARATOR + entry)

Expand Down

0 comments on commit 0ea0b1a

Please sign in to comment.