hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ken Goodhope <kengoodh...@gmail.com>
Subject Re: how to add jar file to hadoop
Date Thu, 08 Jul 2010 03:12:56 GMT
You have a couple choices. You can either add your jar file to a
directory already on the classpath, like hadoop/lib, or you can add
you jar file to the classpath set inside hadoop-env.sh located in the
conf directory.

Either way, you will need to restart mapred after doing so. After you
do that, your job should see the classes you have added.

On 7/7/10, Ahmad Shahzad <ashahzad4@gmail.com> wrote:
> I want to add some utility to hadoop. For that i wanted to know that how can
> i add the jar file to hadoop directory and than i can access files in the
> jar from java files in hadoop directory ( for example TaskTracker.java). I
> am not writing any map-reduce program.
> Regards,
> Ahmad Shahzad

View raw message