Skip to content
Snippets Groups Projects
Commit d984b8ab authored by Matei Zaharia's avatar Matei Zaharia
Browse files

Properly set the number of output splits in DFS shuffle

parent 96f0be93
No related branches found
No related tags found
No related merge requests found
......@@ -61,7 +61,8 @@ extends Logging
})
// Return an RDD that does each of the merges for a given partition
return sc.parallelize(0 until numOutputSplits).flatMap((myIndex: Int) => {
val indexes = sc.parallelize(0 until numOutputSplits, numOutputSplits)
return indexes.flatMap((myIndex: Int) => {
val combiners = new HashMap[K, C]
val fs = DfsShuffle.getFileSystem()
for (i <- Utils.shuffle(0 until numInputSplits)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment