User guide to use braavos from you local machine. official user guide
- Remote access to your braavos instance
ssh <username>@140.110.30.32 -p 22
- Send files or folders from your local machine to yout braavos instance
scp -P 22 <local_path> <username>@140.110.30.32:<path_on_braavos>
link to the official user guide
- Create an iPython notebook profile named pyspark
ipython profile create pyspark
- Set up pysparck notebook profile
vim ~/.ipython/profile_pyspark/startup/00-pyspark-setup.py
00-pyspark-setup.py
import os
import sys
spark_home = os.environ.get('SPARK_HOME', None)
if not spark_home:
raise ValueError('SPARK_HOME environment variable is not set')
sys.path.insert(0, spark_home + "/python")
sys.path.insert(0, os.path.join(spark_home, 'python/lib/py4j-0.8.2.1-src.zip'))
execfile(os.path.join(spark_home, 'python/pyspark/shell.py'))
- Start a notebook without starting a browser
export SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark/
ipython notebook --profile=pyspark --no-browser --port=8889
- Access to the notebook from your local machine
(to run on your local machine)
ssh -N -f -L localhost:8889:localhost:8889 <username>@140.110.30.32 -p 22