Skip to content

Instantly share code, notes, and snippets.

@maurodoglio
Created February 17, 2017 14:41
Show Gist options
  • Save maurodoglio/f321b0ffe4349453e3b33b8f880122ef to your computer and use it in GitHub Desktop.
Save maurodoglio/f321b0ffe4349453e3b33b8f880122ef to your computer and use it in GitHub Desktop.
Add PySpark dependency
Display the source blob
Display the rendered blob
Raw
{
"cells": [
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": false
},
"outputs": [],
"source": [
"!git clone <repo url> && cd <repo-name> && python setup.py bdist_egg "
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {
"collapsed": true
},
"outputs": [],
"source": [
"sc.addPyFile('<repo-name>/dist/my-egg-file.egg')"
]
}
],
"metadata": {
"kernelspec": {
"display_name": "Python 2",
"language": "python",
"name": "python2"
},
"language_info": {
"codemirror_mode": {
"name": "ipython",
"version": 2
},
"file_extension": ".py",
"mimetype": "text/x-python",
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython2",
"version": "2.7.11"
}
},
"nbformat": 4,
"nbformat_minor": 0
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment