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
c8748c25
Commit
c8748c25
authored
11 years ago
by
Ewen Cheslack-Postava
Browse files
Options
Downloads
Patches
Plain Diff
Add notes to python documentation about using SparkContext.setSystemProperty.
parent
317a9eb1
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/python-programming-guide.md
+11
-0
11 additions, 0 deletions
docs/python-programming-guide.md
with
11 additions
and
0 deletions
docs/python-programming-guide.md
+
11
−
0
View file @
c8748c25
...
@@ -131,6 +131,17 @@ sc = SparkContext("local", "App Name", pyFiles=['MyFile.py', 'lib.zip', 'app.egg
...
@@ -131,6 +131,17 @@ sc = SparkContext("local", "App Name", pyFiles=['MyFile.py', 'lib.zip', 'app.egg
Files listed here will be added to the
`PYTHONPATH`
and shipped to remote worker machines.
Files listed here will be added to the
`PYTHONPATH`
and shipped to remote worker machines.
Code dependencies can be added to an existing SparkContext using its
`addPyFile()`
method.
Code dependencies can be added to an existing SparkContext using its
`addPyFile()`
method.
You can set
[
system properties
](
configuration.html#system-properties
)
using
`SparkContext.setSystemProperty()`
class method
*before*
instantiating SparkContext. For example, to set the amount of memory
per executor process:
{% highlight python %}
from pyspark import SparkContext
SparkContext.setSystemProperty('spark.executor.memory', '2g')
sc = SparkContext("local", "App Name")
{% endhighlight %}
# API Docs
# API Docs
[
API documentation
](
api/pyspark/index.html
)
for PySpark is available as Epydoc.
[
API documentation
](
api/pyspark/index.html
)
for PySpark is available as Epydoc.
...
...
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