Skip to content

Instantly share code, notes, and snippets.

@nancyru
Created June 27, 2015 05:28
Show Gist options
  • Save nancyru/e8c3a1d28194e921eb30 to your computer and use it in GitHub Desktop.
Save nancyru/e8c3a1d28194e921eb30 to your computer and use it in GitHub Desktop.
AWS EMR bootstrap action for configuring python
#!/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