Similar to Hadoop Mapreduce, Hama also has Counters as explained in this link.
In hadoop mapreduce, retrieving the value of a Counter is as simple as follows using the getCounters() function:
long value = job.getCounters().findCounter(SomeEnumClass.PROPERTY).getValue();
However, in hama's BSPJob class, it does not have such a getCounters()
function.
cannot find symbol
symbol : method getCounters()
location: class org.apache.hama.bsp.BSPJob
long value = bsp.getCounters().findCounter(
^
1 error
So my question is: After a hama BSPJob has finished, how can I retrieve the value from a Counter?
Thank you,