Look at using a dynamic counter. You don't need to set up or declare an enum. The only caveat is that counters are passed back to the JT by each task and are stored in memory.
On Jul 23, 2012, at 9:32 AM, Kai Voigt wrote: > http://diveintodata.org/2011/03/15/an-example-of-hadoop-mapreduce-counter/