Shuffler:
1.Partitioner figure out which Map output key goes to which Reducer (by framework). It possible to
have a several unique key in one partition.
a.You can specify Partitioner class which implement PartitionID extraction process.
2.Sort first by PartitionID then by Key value within partition. (by framework)