hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Peng, Wei" <Wei.P...@xerox.com>
Subject RE: Please help with hadoop configuration parameter set and get
Date Fri, 17 Dec 2010 22:14:45 GMT
My question is how to exit hadoop reducer.
Can I just write "return;" in reducer?

Wei

-----Original Message-----
From: Aman [mailto:aman_doon@hotmail.com]
Sent: Fri 12/17/2010 1:24 PM
To: hadoop-user@lucene.apache.org
Subject: RE: Please help with hadoop configuration parameter set and get
 

Set the counter in the mapper and in the reducer code, check for this
counter. If counter is set then run the reducer if not then exit without
doing anything. 


Once there is no new node is found, I would like to exit mapper or reducer
process.
For example, if no new nodes are found in the mapper class, the setup of
reducer will stop reducer work (or the cleanup of mapper will stop the
reducer work).

-- 
View this message in context: http://lucene.472066.n3.nabble.com/Please-help-with-hadoop-configuration-parameter-set-and-get-tp2103303p2107388.html
Sent from the Hadoop lucene-users mailing list archive at Nabble.com.


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