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
08afef37
Commit
08afef37
authored
11 years ago
by
Andrew Ash
Browse files
Options
Downloads
Patches
Plain Diff
Update tuning.md
Clarify when serializer is used based on recent user@ mailing list discussion.
parent
eb4296c8
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
docs/tuning.md
+2
-1
2 additions, 1 deletion
docs/tuning.md
with
2 additions
and
1 deletion
docs/tuning.md
+
2
−
1
View file @
08afef37
...
@@ -39,7 +39,8 @@ in your operations) and performance. It provides two serialization libraries:
...
@@ -39,7 +39,8 @@ in your operations) and performance. It provides two serialization libraries:
for best performance.
for best performance.
You can switch to using Kryo by calling
`System.setProperty("spark.serializer", "org.apache.spark.serializer.KryoSerializer")`
You can switch to using Kryo by calling
`System.setProperty("spark.serializer", "org.apache.spark.serializer.KryoSerializer")`
*before*
creating your SparkContext. The only reason it is not the default is because of the custom
*before*
creating your SparkContext. This setting configures the serializer used for not only shuffling data between worker
nodes but also when serializing RDDs to disk. The only reason Kryo is not the default is because of the custom
registration requirement, but we recommend trying it in any network-intensive application.
registration requirement, but we recommend trying it in any network-intensive application.
Finally, to register your classes with Kryo, create a public class that extends
Finally, to register your classes with Kryo, create a public class that extends
...
...
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