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
540a4116
Commit
540a4116
authored
14 years ago
by
Mosharaf Chowdhury
Browse files
Options
Downloads
Patches
Plain Diff
UseHttpPipelining is 'true' by default.
parent
0de859fb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conf/java-opts
+1
-1
1 addition, 1 deletion
conf/java-opts
src/scala/spark/LocalFileShuffle.scala
+2
-1
2 additions, 1 deletion
src/scala/spark/LocalFileShuffle.scala
with
3 additions
and
2 deletions
conf/java-opts
+
1
−
1
View file @
540a4116
-Dspark.shuffle.class=spark.LocalFileShuffle -Dspark.shuffle.UseHttpPipelining=
fals
e
-Dspark.shuffle.class=spark.LocalFileShuffle -Dspark.shuffle.UseHttpPipelining=
tru
e
This diff is collapsed.
Click to expand it.
src/scala/spark/LocalFileShuffle.scala
+
2
−
1
View file @
540a4116
...
...
@@ -62,7 +62,7 @@ class LocalFileShuffle[K, V, C] extends Shuffle[K, V, C] with Logging {
// Load config option to decide whether or not to use HTTP pipelining
val
UseHttpPipelining
=
System
.
getProperty
(
"spark.shuffle.UseHttpPipelining"
,
"
fals
e"
).
toBoolean
System
.
getProperty
(
"spark.shuffle.UseHttpPipelining"
,
"
tru
e"
).
toBoolean
// Build a traversable list of pairs of server URI and split. Needs to be
// of type TraversableOnce[(String, ArrayBuffer[Int])]
...
...
@@ -94,6 +94,7 @@ class LocalFileShuffle[K, V, C] extends Shuffle[K, V, C] with Logging {
val
url
=
"%s/shuffle/%d/%d/%d"
.
format
(
serverUri
,
shuffleId
,
i
,
myId
)
val
readStartTime
=
System
.
currentTimeMillis
logInfo
(
"BEGIN READ: "
+
url
)
// TODO: Insert data transfer code before this place
val
inputStream
=
new
ObjectInputStream
(
new
URL
(
url
).
openStream
())
try
{
while
(
true
)
{
...
...
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