hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Harsh J <ha...@cloudera.com>
Subject Re: Differentiate Reducer or Combiner
Date Wed, 11 May 2011 13:53:15 GMT
Hello Arv,

On Wed, May 11, 2011 at 7:04 PM, Arv Mistry <arv@kindsight.net> wrote:
> Is there an easy way to know whether the process is running as a reducer
> or combiner?
> I'm hoping that I'm missing an obvious solution here.

There's no API way of telling if a Reducer class is running in
combiner or reducer mode.

The recommended solution would be to use different classes (perhaps
use derivative classes for keeping with the OOP phil., if you have to)
for Combiner and Reducer.

Harsh J

View raw message