Hello,

Short answer: No. Use separate classes (or derive your combiner from the 
reducer, with modified behavior).

I answered a similar question not too long ago from now: 
http://search-hadoop.com/m/Wh7vuKJEtL1/reducer+combiner&subj=Differentiate+Reducer+or+Combiner

HTH.

On 14-May-2011, at 1:17 AM, W.P. McNeill wrote:

> I have a MapReduce process that uses the same class for its combiner and
> reducer.  I just realized that I want the behavior in the combiner and
> reducer to be slightly different in this one place.  I could write separate
> combiner and reducer classes derived from a common source, but in my
> situation this is overkill.  Is there some way I can tell at runtime whether
> I'm running as a combiner or a reducer?  Like some configuration setting?

--
Harsh J

Reply via email to