MAPREDUCE-3087. Fixed the mapreduce classpath to correctly include the generated-classpath file needed for tests. Contributed by Ravi Prakash.

git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1187658 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Vinod Kumar Vavilapalli 2011-10-22 06:46:12 +00:00
parent 5795fcfd99
commit 665a90cbf3
2 changed files with 5 additions and 1 deletions

View File

@ -1732,6 +1732,9 @@ Release 0.23.0 - Unreleased
MAPREDUCE-3058. Fixed MR YarnChild to report failure when task throws an MAPREDUCE-3058. Fixed MR YarnChild to report failure when task throws an
error and thus prevent a hanging task and job. (vinodkv) error and thus prevent a hanging task and job. (vinodkv)
MAPREDUCE-3087. Fixed the mapreduce classpath to correctly include the
generated-classpath file needed for tests. (Ravi Prakash via vinodkv)
Release 0.22.0 - Unreleased Release 0.22.0 - Unreleased
INCOMPATIBLE CHANGES INCOMPATIBLE CHANGES

View File

@ -189,7 +189,8 @@ private static void setMRFrameworkClasspath(
Apps.addToEnvironment( Apps.addToEnvironment(
environment, environment,
Environment.CLASSPATH.name(), Environment.CLASSPATH.name(),
thisClassLoader.getResource(mrAppGeneratedClasspathFile).getFile()); thisClassLoader.getResource(mrAppGeneratedClasspathFile).getFile()
.split("!")[0]);
// Add standard Hadoop classes // Add standard Hadoop classes
for (String c : ApplicationConstants.APPLICATION_CLASSPATH) { for (String c : ApplicationConstants.APPLICATION_CLASSPATH) {