Repository: spark
Updated Branches:
  refs/heads/master 98d7ec7df -> f6dcc6e96


[SPARK-11837][EC2] python3 compatibility for launching ec2 m3 instances

this currently breaks for python3 because `string` module doesn't have 
`letters` anymore, instead `ascii_letters` should be used

Author: Mortada Mehyar <[email protected]>

Closes #9797 from mortada/python3_fix.


Project: http://git-wip-us.apache.org/repos/asf/spark/repo
Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/f6dcc6e9
Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/f6dcc6e9
Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/f6dcc6e9

Branch: refs/heads/master
Commit: f6dcc6e96ad3f88563d717d5b6c45394b44db747
Parents: 98d7ec7
Author: Mortada Mehyar <[email protected]>
Authored: Mon Nov 23 12:03:15 2015 -0800
Committer: Josh Rosen <[email protected]>
Committed: Mon Nov 23 12:03:15 2015 -0800

----------------------------------------------------------------------
 ec2/spark_ec2.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/spark/blob/f6dcc6e9/ec2/spark_ec2.py
----------------------------------------------------------------------
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py
index 9327e21..9fd652a 100755
--- a/ec2/spark_ec2.py
+++ b/ec2/spark_ec2.py
@@ -595,7 +595,7 @@ def launch_cluster(conn, opts, cluster_name):
             dev = BlockDeviceType()
             dev.ephemeral_name = 'ephemeral%d' % i
             # The first ephemeral drive is /dev/sdb.
-            name = '/dev/sd' + string.letters[i + 1]
+            name = '/dev/sd' + string.ascii_letters[i + 1]
             block_map[name] = dev
 
     # Launch slaves


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to