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 ??

InputFormat will been used in client side, so you should combine the
hadoop-0.20.2.jar and hadoop-example.jar into one single jar

On Wed, Sep 8, 2010 at 2:58 AM, Matthew John <[EMAIL PROTECTED]> wrote:
> Hey Jeff ,
> I gave the command :
>  bin/hadoop jar hadoop-0.20.2-examples.jar sort -libjars
> ./build/hadoop-0.20.3-dev-core.jar -inFormat
> org.apache.hadoop.mapred.MetafileInputFormat -outFormat
> org.apache.hadoop.mapred.MetafileOutputFormat -outKey
> org.apache.hadoop.io.FpMetaId -outValue org.apache.hadoop.io.FpMetadata
> fp_input fp_output
> where hadoop-0.20.3-dev-core.jar is the new core jar (using command ant jar)
> whereas hadoop-0.20.2-examples.jar is still the same old examples jar file
> (I couldnot  make the new examples jar using ant examples since I doesnt
> have the latest dependencies on the new classes i have defined). the other
> parameters are the new classes I want to use for running Sort.
> I feel I should make the new examples jar but dont know how to .. :( :( ..
> please tell me how to give new core jar as a parameter to run the ant
> examples.
> I am getting the following errors when i ran the command.. :
> java.lang.ClassNotFoundException:
> org.apache.hadoop.mapred.MetafileInputFormat.. and so on ...
> Thanks,
> Matthew

Best Regards

Jeff Zhang