Created
September 26, 2016 18:00
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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