hadoop-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Segel <michael_se...@hotmail.com>
Subject Dynamic counters in Hadoop M/R jobs...
Date Mon, 19 Jul 2010 18:22:02 GMT


In looking at "The Definitive Guide"  pgs 211-218 looking at the documentation for counters
have a question about how to use the

dynamic (String, String) methods to create/access counters.

Looking at the IdentityTableMap class, the following map() method exists():
public void map(ImmutableBytesWritable key,
                RowResult value,
                org.apache.hadoop.mapred.Reporter reporter)
         throws IOExceptionThis method is deprecated in 20.5

So how can you get the Reporter so you can use the 'reporter.incrCounter(String group,String
counter, long amount)'
method. (See pg 214 code fragment) 

I must be missing something.



The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message