Repository: spark Updated Branches: refs/heads/branch-1.6 99938db6b -> 49a6b4803
[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. (cherry picked from commit f6dcc6e96ad3f88563d717d5b6c45394b44db747) Signed-off-by: Josh Rosen <[email protected]> Project: http://git-wip-us.apache.org/repos/asf/spark/repo Commit: http://git-wip-us.apache.org/repos/asf/spark/commit/49a6b480 Tree: http://git-wip-us.apache.org/repos/asf/spark/tree/49a6b480 Diff: http://git-wip-us.apache.org/repos/asf/spark/diff/49a6b480 Branch: refs/heads/branch-1.6 Commit: 49a6b480335bac2eb0a4526a5e8626f976c0b825 Parents: 99938db 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:31 2015 -0800 ---------------------------------------------------------------------- ec2/spark_ec2.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/spark/blob/49a6b480/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]
