Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
J
Jupyter Docker Stacks
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
Jupyter Docker Stacks
Commits
3e27c990
Commit
3e27c990
authored
Feb 02, 2016
by
Peter Parente
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove os.environ step from spark READMEs
(c) Copyright IBM Corp. 2016
parent
155fdea5
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
24 deletions
+6
-24
all-spark-notebook/README.md
all-spark-notebook/README.md
+3
-12
pyspark-notebook/README.md
pyspark-notebook/README.md
+3
-12
No files found.
all-spark-notebook/README.md
View file @
3e27c990
...
@@ -32,7 +32,7 @@ This configuration is nice for using Spark on small, local data.
...
@@ -32,7 +32,7 @@ This configuration is nice for using Spark on small, local data.
1.
Open a Python 2 or 3 notebook.
1.
Open a Python 2 or 3 notebook.
2.
Create a
`SparkContext`
configured for local mode.
2.
Create a
`SparkContext`
configured for local mode.
For example, the first few cells in a
Python 3
notebook might read:
For example, the first few cells in a notebook might read:
```
python
```
python
import
pyspark
import
pyspark
...
@@ -43,15 +43,6 @@ rdd = sc.parallelize(range(1000))
...
@@ -43,15 +43,6 @@ rdd = sc.parallelize(range(1000))
rdd
.
takeSample
(
False
,
5
)
rdd
.
takeSample
(
False
,
5
)
```
```
In a Python 2 notebook, prefix the above with the following code to ensure the local workers use Python 2 as well.
```
python
import
os
os
.
environ
[
'PYSPARK_PYTHON'
]
=
'python2'
# include pyspark cells from above here ...
```
### In a R Notebook
### In a R Notebook
0.
Run the container as shown above.
0.
Run the container as shown above.
...
...
pyspark-notebook/README.md
View file @
3e27c990
...
@@ -27,7 +27,7 @@ This configuration is nice for using Spark on small, local data.
...
@@ -27,7 +27,7 @@ This configuration is nice for using Spark on small, local data.
2.
Open a Python 2 or 3 notebook.
2.
Open a Python 2 or 3 notebook.
3.
Create a
`SparkContext`
configured for local mode.
3.
Create a
`SparkContext`
configured for local mode.
For example, the first few cells in
a Python 3
notebook might read:
For example, the first few cells in
the
notebook might read:
```
python
```
python
import
pyspark
import
pyspark
...
@@ -38,15 +38,6 @@ rdd = sc.parallelize(range(1000))
...
@@ -38,15 +38,6 @@ rdd = sc.parallelize(range(1000))
rdd
.
takeSample
(
False
,
5
)
rdd
.
takeSample
(
False
,
5
)
```
```
In a Python 2 notebook, prefix the above with the following code to ensure the local workers use Python 2 as well.
```
python
import
os
os
.
environ
[
'PYSPARK_PYTHON'
]
=
'python2'
# include pyspark cells from above here ...
```
## Connecting to a Spark Cluster on Mesos
## Connecting to a Spark Cluster on Mesos
This configuration allows your compute cluster to scale with your data.
This configuration allows your compute cluster to scale with your data.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment