Skip to content

IDEA-NTHU-Taiwan/Braavos-User-Guide-

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 

Repository files navigation

Braavos-User-Guide-

User guide to use braavos from you local machine. official user guide

Using a Linux local machine

Basic command

  1. Remote access to your braavos instance
ssh <username>@140.110.30.32 -p 22
  1. 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> 

Set up iPython using PySpark

link to the official user guide

  1. Create an iPython notebook profile named pyspark
ipython profile create pyspark
  1. 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'))
  1. Start a notebook without starting a browser
export SPARK_HOME=/opt/cloudera/parcels/CDH/lib/spark/
ipython notebook --profile=pyspark --no-browser --port=8889
  1. 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

Releases

No releases published

Packages

No packages published