Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
zoe-apps
zapp-spark
Commits
22b51d28
Commit
22b51d28
authored
Aug 29, 2018
by
Daniele Venzano
Browse files
Testing and fixing the Spark ZApp
parent
041ed5b3
Pipeline
#10406
passed with stages
in 1 minute and 6 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
spark-jupyter-notebook/files/00-pyspark-setup.py
View file @
22b51d28
# Configure the necessary Spark environment
import
os
import
sys
# make sure pyspark tells workers to use python3 not 2 if both are installed
os
.
environ
[
'PYSPARK_PYTHON'
]
=
'/opt/conda/bin/python'
sys
.
path
+=
[
'/opt/spark/python'
,
'/opt/spark/python/lib/py4j-0.10.7-src.zip'
]
if
'SPARK_MASTER'
in
os
.
environ
:
import
pyspark
...
...
spark-jupyter-notebook/files/start-notebook.sh
View file @
22b51d28
#!/bin/bash
echo
$PYTHONPATH
exec
/opt/conda/bin/jupyter lab
--no-browser
--NotebookApp
.token
=
''
--allow-root
--ip
=
0.0.0.0
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