You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-user@hadoop.apache.org by Tarandeep Singh <ta...@gmail.com> on 2009/08/31 22:34:14 UTC

Use third party classes during MR job

Hi,

How can I use third party classes during execution of Map Reduce job?
I know there are some ways to do this -

i) have a lib directory inside my app.jar file that contains all third party
jars
ii) Use DistribtuedCache.addfiletoclasspath( )

I can't use (i) because at time of submitting my jar to Hadoop, the classes
don't exist (they get created later on).

I have used (ii) in past to add jar files, but it is not working on .class
files. Any suggestions ?

Thanks,
Tarandeep