hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From javateck javateck <javat...@gmail.com>
Subject Re: Running MapReduce without setJar
Date Wed, 01 Apr 2009 18:52:10 GMT
you can run from java program:

        JobConf conf = new JobConf(MapReduceWork.class);

        // setting your params

        JobClient.runJob(conf);


On Wed, Apr 1, 2009 at 11:42 AM, Farhan Husain <russoue@gmail.com> wrote:

> Can I get rid of the whole jar thing? Is there any way to run map reduce
> programs without using a jar? I do not want to use "hadoop jar ..." either.
>
> On Wed, Apr 1, 2009 at 1:10 PM, javateck javateck <javateck@gmail.com
> >wrote:
>
> > I think you need to set a property (mapred.jar) inside hadoop-site.xml,
> > then
> > you don't need to hardcode in your java code, and it will be fine.
> > But I don't know if there is any way that we can set multiple jars, since
> a
> > lot of times our own mapreduce class needs to reference other jars.
> >
> > On Wed, Apr 1, 2009 at 10:57 AM, Farhan Husain <russoue@gmail.com>
> wrote:
> >
> > > Hello,
> > >
> > > Can anyone tell me if there is any way running a map-reduce job from a
> > java
> > > program without specifying the jar file by JobConf.setJar() method?
> > >
> > > Thanks,
> > >
> > > --
> > > Mohammad Farhan Husain
> > > Research Assistant
> > > Department of Computer Science
> > > Erik Jonsson School of Engineering and Computer Science
> > > University of Texas at Dallas
> > >
> >
>
>
>
> --
> Mohammad Farhan Husain
> Research Assistant
> Department of Computer Science
> Erik Jonsson School of Engineering and Computer Science
> University of Texas at Dallas
>

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