Look at MapTask.java (MapOutputBuffer) and ReduceTask.java and follow the merge code.
On Sep 30, 2012, at 12:06 PM, Samaneh Shokuhi wrote:
> I want to know about the sorting mechanism in mapper and reducer,As i
> understood from document the result from mapper get sorted before sent to
> Could you please tell me which part of hadoop implementation is
> responsible for this sort.
> Also please let me know which classes are responsible for sorting in
> reducer phase.
> Best Regards,
Arun C. Murthy