hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Zhang <zjf...@gmail.com>
Subject Re: Alternative to JobConf
Date Fri, 18 Dec 2009 01:10:56 GMT
You should put the jar on your classpath, and then hadoop will find the jar
which contain the class you specified.

Jeff Zhang


2009/12/17 Farhan Husain <farhan.husain@csebuet.org>

> Where should I put the jar file then? Using the setJar method I could
> specify a local file system path to the jar file.
>
> 2009/12/18 Jeff Zhang <zjffdu@gmail.com>
>
> > You can set jar file by using Job. setJarByClass(Class<?> cls)
> >
> >
> > Jeff Zhang
> >
> >
> > -----Original Message-----
> > From: Farhan Husain [mailto:farhan.husain@csebuet.org]
> > Sent: 2009年12月17日 14:44
> > To: common-user@hadoop.apache.org
> > Subject: Alternative to JobConf
> >
> > The *org.apache.hadoop.mapred.JobConf* class is deprecated in version
> > 0.20.1. I tried to use the *org.apache.hadoop.mapreduce.Job* class
> instead
> > but found no way to set the jar file. Can anyone tell me how to run a job
> > with no deprecated API in version 0.20.1?
> >
> > Thanks,
> > Farhan
> >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message