hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Segel <michael_se...@hotmail.com>
Subject RE: manipulate counters in new api
Date Mon, 19 Jul 2010 20:00:06 GMT



> Date: Tue, 20 Jul 2010 03:48:22 +0800
> From: lgpublic@yahoo.com.cn
> Subject: manipulate counters in new api
> To: common-user@hadoop.apache.org
> 
> Hi all,
> I find the map/reduce method in the new api look like map/reduce(Object, 
> Iterable, Context). No Reporter appears here as in the old api. How to add and 
> modify counters in the new api?
> 
> Thanks,
> -Gang
> 

This is pretty similar to my post to general-hadoop.

The idea is how to create dynamic counters vs enum counters.

To answer Gang's question ... if you are using enum counters, you can get the counters from
the context 
and then increment them.

-Mike

 		 	   		  
_________________________________________________________________
The New Busy is not the old busy. Search, chat and e-mail from your inbox.
http://www.windowslive.com/campaign/thenewbusy?ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_3
Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message