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

Switch to Threaded View
Hadoop >> mail # user >> How to rebuild Hadoop ??

Copy link to this message
Re: How to rebuild Hadoop ??

Do you still put your source code in the io package and mapred package ?

If so, rebuild and hadoop core (seems you have done), and then invoke
the command
bin/hadoop -jar hadoop-0.20.2-example.jar sort -libjars
hadoop-core-0.20.2.jar(your new builded jar)  other_arguments
PS: I do not recommend you to put your code mixed with hadoop code,
it's better to put it another places, and build an individual jar.
On Wed, Sep 8, 2010 at 1:12 AM, Matthew John <[EMAIL PROTECTED]> wrote:
> Thanks Jeff !
> Following what you have said, I build my hadoop core jar first (command ->
> ant jar). That created a hadoop-core.jar in the build. Now can you please
> tell me how to use this as dependable for the building of examples.jar.
> Because if I give ant example , it gives errors like the new classes I ve
> included in the core are not found. I suppose thats because its using the
> old hadoop-core.jar .
> Thanks,
> Matthew John

Best Regards

Jeff Zhang