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

Hi,

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.OutputCollector<ImmutableBytesWritable,RowResult>
output,
                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.

Thx

-Mike


 		 	   		  
_________________________________________________________________
The New Busy is not the too busy. Combine all your e-mail accounts with Hotmail.
http://www.windowslive.com/campaign/thenewbusy?tile=multiaccount&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_4
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message