nchammas / flintrock

A command-line tool for launching Apache Spark clusters.
Apache License 2.0
638 stars 116 forks source link

Make setup-ephemeral-storage.py Python 2/3 compatible #96

Closed nchammas closed 8 years ago

nchammas commented 8 years ago

Since we don't tightly control what Python is running on the cluster instances, we should make this script Python 2/3 compatible.

Specifically, setup-ephemeral-storage.py will now work with Python 2.7+ and 3.4+.

Fixes #89.

nchammas commented 8 years ago

@ereed-tesla - If it still affects your workflow, do you wanna give this PR a quick whirl to make sure it works on AMIs where Python 3 is the default?

pip install -U git+https://github.com/nchammas/flintrock@setup-ephemeral-storage-py2-py3

I tested it manually and it works for me.