[
https://issues.apache.org/jira/browse/MAPREDUCE-3087?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Ravi Prakash updated MAPREDUCE-3087:
------------------------------------
Attachment: MAPREDUCE-3087.patch
Seems like I finally figured this one out.
The line at issue is MRApps.java:191
bq.
thisClassLoader.getResource(mrAppGeneratedClasspathFile).getFile() );
The output of the getFile() method includes the "!mrapp-generated-classpath" .
e.g. in a test program
{noformat}
URL url = new
URL("file:/somepath/somewhere/mr-apps.jar!mrapp-generated-classpath");
System.out.println("Added " + url.getFile());
System.out.println("Should add " + url.getFile().split("!")[0] );
{noformat}
outputs
{noformat}
Added /somepath/somewhere/mr-apps.jar!mrapp-generated-classpath
Should add /somepath/somewhere/mr-apps.jar
{noformat}
So the line 191 was simply adding
/somepath/somewhere/mr-app.jar!mrapp-generated-classpath to the classpath. This
prevents my JVM to read mr-app.jar as included in the classpath.
Attaching a small patch to fix this issue. Can someone please review and commit
this?
> CLASSPATH not the same after MAPREDUCE-2880
> -------------------------------------------
>
> Key: MAPREDUCE-3087
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-3087
> Project: Hadoop Map/Reduce
> Issue Type: Bug
> Reporter: Ravi Prakash
> Attachments: MAPREDUCE-3087.patch, notworking.classpath.uniq,
> working.classpath.uniq
>
>
> After MAPREDUCE-2880, my classpath was missing key jar files.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira