Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HDFS >> mail # user >> Re: how to rebuild hadoop-core-0.20.2-cdh3u4.jar

Copy link to this message
Re: how to rebuild hadoop-core-0.20.2-cdh3u4.jar

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 <[EMAIL PROTECTED]> 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