Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
S
spark
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cs525-sp18-g07
spark
Commits
d984b8ab
There was an error fetching the commit references. Please try again later.
Commit
d984b8ab
authored
14 years ago
by
Matei Zaharia
Browse files
Options
Downloads
Patches
Plain Diff
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
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/scala/spark/DfsShuffle.scala
+2
-1
2 additions, 1 deletion
src/scala/spark/DfsShuffle.scala
with
2 additions
and
1 deletion
src/scala/spark/DfsShuffle.scala
+
2
−
1
View file @
d984b8ab
...
...
@@ -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
))
{
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment