hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: how to rebuild hadoop-core-0.20.2-cdh3u4.jar
Date Sat, 01 Dec 2012 10:34:47 GMT

Since this is a CDH build specific question, I am moving the post to

To answer your question, you can simply do this:

[Assuming $HADOOP_HOME points to your CDH3u4 tarball location, which
you can download from
http://archive.cloudera.com/cdh/3/hadoop-0.20.2-cdh3u4.tar.gz btw.]

$ cd $HADOOP_HOME/src
# Do your JobClient modifications under the sources here.
# Good idea to git init and commit the whole directory the first time,
to track your changes.
# After changes, build them into a jar
$ ant jar
# Copy over and overwrite original jar (good idea to keep a backup.
$ cp build/hadoop-core-0.20.2-cdh3u4.jar ../

That should be all!

On Sat, Dec 1, 2012 at 6:46 AM, Nhung Nguyen <nnhung@pdx.edu> wrote:
> Hi ,
> I am trying to modify JobClient.class inside hadoop-core-0.20.2-cdh3u4.jar.
> But I can't find a good way to compile the source-codes to get a new a jar (
> with my modified JobClient.class)  without changing too much. Any help would
> be appreciated. Thanks
> Nhung Nguyen

Harsh J

View raw message