hope useful to you: http://www.cloudera.com/blog/2011/01/how-to-include-third-party-libraries-in-your-map-reduce-job/
2012/5/9 Pat Ferrel <p...@farfetchers.com> > I specify a class at runtime via a parameter to a job. I used to put a jar > with the possible class choices in $HADOOP_HOME/lib on all machines (using > only one in a psuedo cluster for this example) then restart my cluster and > run my job. Then I upgraded from 0.20.203 to 0.20.205, which may have > nothing to do with the problem but there it is. > > In any case the job cannot find the class in $HADOOP_HOME/lib. I checked > the jar and its in the right place and has my classes in it. > > Did I miss something? Is there a better way? > > Sorry ahead of time, this must be a repeat of a repeat but the above is > the best advice I can find. > > > -- Regards Junyong