[
https://issues.apache.org/jira/browse/MAPREDUCE-1283?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Amit Nithian updated MAPREDUCE-1283:
------------------------------------
Attachment: jarmodule.patch
Attached is a patch file that you can use to patch the
org.apache.hadoop.eclipse.server.JarModule class. It changes the way that the
jar file is constructed by manually adding the lib/*.jar into the created jar
on top of the classes. The way that Eclipse creates jars is to exclude anything
but jar files which is a pain since hadoop will use jars within a jar to
execute the job. I have tested this with Eclipse 3.4 and 3.5 but on Windows
only (I suspect it should work for others).
Let me know if there are any problems. I hope that this can be rolled into the
baseline plugin code.
> Support including 3rd party jars supplied in lib/ folder of eclipse project
> in hadoop jar
> -----------------------------------------------------------------------------------------
>
> Key: MAPREDUCE-1283
> URL: https://issues.apache.org/jira/browse/MAPREDUCE-1283
> Project: Hadoop Map/Reduce
> Issue Type: Improvement
> Components: contrib/eclipse-plugin
> Environment: Any
> Reporter: Amit Nithian
> Priority: Minor
> Attachments: jarmodule.patch
>
>
> Currently, the eclipse plugin only exports the generated class files to the
> hadoop jar but if there are any 3rd party jars specified in the lib/ folder,
> they should also get packaged in the jar for submission to the cluster.
> Currently this has to be done manually which can slow down development. I am
> working on a patch to the current plugin to support this.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.