It's Quicksort, afterwards the sorted intermediate outputs get merged together.
Quicksort checks the recursion depth and gives up when it is too deep. If this is the case, Heapsort is used.
Have a look at the Quicksort class:
org.apache.hadoop.util.QuickSort
You can change the algorithm used via the map.sort.class value in the hadoop-default.xml.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…