Created
June 27, 2015 05:28
-
-
Save nancyru/e8c3a1d28194e921eb30 to your computer and use it in GitHub Desktop.
AWS EMR bootstrap action for configuring python
This file contains 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
#!/bin/bash | |
#When Spark is installed by a bootstrap action on an AWS EMR cluster, | |
#this script can be used as an additional bootstrap action to | |
#install ipython on all the nodes of the cluster. | |
#Make Python 2.7 the default python | |
echo `sudo rm /usr/bin/python` | |
echo `sudo ln -s /usr/bin/python2.7 /usr/bin/python` | |
#Install iPython and dependencies for Python 2.7 | |
echo `sudo pip-2.7 install "ipython[all]"` |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment