The type of shuffle manager to use is determined by configuration spark.shuffle.manager, and by default it is SortShuffleManager. It is instantiated during the creation of SparkEnv in Driver/Executors.
In sort-based shuffle, store map outputs in serialized form