hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Daniel Yu" <d4nielf...@gmail.com>
Subject question about Counters
Date Mon, 21 Jul 2008 21:55:14 GMT
  i defined a counter of my own, and updated it in map method,

protected static enum MyCounter {
public void map(...) {
    reporter.incrCounter(MyCounter.INPUT_WORDS, 1);

and can i fetch the counts later? like in the  run() method after the job is
coz i want to store it as a parameter file for later MR jobs.

looks like the framework will use Counters.getCounter(enum key) to return a
certain count,
which can be seen when the JobClient tries to run a job, but in my
application(outside the
job running) how can i get the Counters object? my guess is its maintained
by the framework,
so user doesnt need to create Counters object in the application.



  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message