Skip to content

Instantly share code, notes, and snippets.

@joshisa
Created September 26, 2016 18:00
Show Gist options
  • Select an option

  • Save joshisa/5fdb4a021092110e57baecc111d09e2e to your computer and use it in GitHub Desktop.

Select an option

Save joshisa/5fdb4a021092110e57baecc111d09e2e to your computer and use it in GitHub Desktop.
Example for adding spark-csv and stocator libraries to a pyspark (Python) Jupyter notebook
import os
SUBMIT_ARGS = "--packages com.databricks:spark-csv_2.10:1.5.0,com.ibm.stocator:stocator:1.0.5 pyspark-shell"
os.environ["PYSPARK_SUBMIT_ARGS"] = SUBMIT_ARGS
import pyspark
sc = pyspark.SparkContext('local[*]')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment