Just call reporter.incrCounter(specificEnumValueOfSomeKind, n)

where the first argument is some enum value.  The framework will work out
that it is your enum and put it in a box of its own along with any other
values.


On 3/2/08 7:46 PM, "dennis81" <[EMAIL PROTECTED]> wrote:

> 
> Hi,
> 
> I was wondering how I can add a new counter in the "Map-Reduce Framework"
> group of counters. Basically, I want to add a counter of the total number of
> input bytes for the reduce task (like the one for the map task). I thought I
> could just add another entry in the Enum type in Task.java and then
> increment it, but that doesn't seem to be enough. I'd appreciate any advice
> on how to do this.
> 
> Thanks in advance,
> Dennis

Reply via email to