Hello, Does MapReduceBase.close() fit your needs? Take a look at http://hadoop.apache.org/core/docs/current/api/org/apache/hadoop/mapred/MapReduceBase.html#close()
On Fri, October 3, 2008 11:36 pm, Zhou, Yunqing said: > the input is as follows. flag a b flag c d e flag f > > then I used a mapper to first store values and then emit them all when > met with a line contains "flag" but when the file reached its end, I have > no chance to emit the last record.(in this case ,f) so how can I detect the > mapper's end of its life , or how can I emit a last record before a mapper > exits. > > Thanks > Have a good one, -- Joman Chu Carnegie Mellon University School of Computer Science 2011 AIM: ARcanUSNUMquam