I am confused since I have found two answers for it.
1) As per Hadoop Definitive Guide - 3rd edition, Chapter 6 - The Map Side says: "Before it writes to disk, the thread first divides the data into partitions corresponding to the reducers that they will ultimately be sent to. Within each partition, the back-ground thread performs an in-memory sort by key, and if there is a combiner function, it is run on the output of the sort.
2)Yahoo developers tutorial (Yahoo tutorial) says Combiner runs prior to partitioner.
Can anyone please clarify which runs first.