I would like to capture some information on keys and their values inside a custom Partitioner (or even the default HashPartitioner).
I can use custom counters inside both mappers and reducers by accessing the "context" variable. However, inside the Partitioner there is no access to the "context" variable.
Is there any way to: -1- get access to the "context" variable from the Partitioner ? or -2- how to add a counter to the Partitioner ?
Thank you.