As I wanted to increment some counters in some UDFs I wrote, I came across
http://squarecog.wordpress.com/2010/12/24/incrementing-hadoop-counters-in-apache-pig/
as
THE answer
which basically says I should use something like
PigStatusReporter reporter = PigStatusReporter.getInstance();
if (reporter != null) {
reporter.getCounter(key).increment(incr);
}
My issue however lies in that reporter.getCounter(key) always returns null
Also, I'm not sure what to do for the case when the reporter itself is null
Any ideas?
--
Best Regards,
Ahmed Sobhi
http://about.me/humanzz/bio