You could also try

job.setNumReduceTasks(yourNumber);

~Ed

On Thu, Oct 21, 2010 at 4:45 PM, Alex Kozlov <[email protected]> wrote:

> Hi Matt, it might be that the parameter does not end up in the final
> configuration for a number of reasons.  Can you check the job config xml in
> jt:/var/log/hadoop/history or in the JT UI and see what the
> mapred.reduce.tasks setting is?  -- Alex K
>
> On Thu, Oct 21, 2010 at 1:39 PM, Matt Tanquary <[email protected]
> >wrote:
>
> > I am using the following to set my number of reduce tasks, however when I
> > run my job it's always using just 1 reducer.
> >
> > conf.setInt("mapred.reduce.tasks", 20);
> >
> > 1 reducer will never finish this job. Please help me to understand why
> the
> > setting I choose is not used.
> >
> > Thanks,
> > -M@
> >
>

Reply via email to