diff options
author | Sean Owen <sowen@cloudera.com> | 2014-11-28 17:43:38 -0500 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-11-28 17:43:38 -0500 |
commit | 48223d8815de78c178861e38703bddd0bbab978b (patch) | |
tree | 26f44b7bc2489c1be9d3ec0765b605c82c4c4cc8 /ec2 | |
parent | 915f8eeb3a493a0bb4b8d05d795ddd21f373d2ff (diff) | |
download | spark-48223d8815de78c178861e38703bddd0bbab978b.tar.gz spark-48223d8815de78c178861e38703bddd0bbab978b.tar.bz2 spark-48223d8815de78c178861e38703bddd0bbab978b.zip |
SPARK-1450 [EC2] Specify the default zone in the EC2 script help
This looks like a one-liner, so I took a shot at it. There can be no fixed default availability zone since the names are different per region. But the default behavior can be documented:
```
if opts.zone == "":
opts.zone = random.choice(conn.get_all_zones()).name
```
Author: Sean Owen <sowen@cloudera.com>
Closes #3454 from srowen/SPARK-1450 and squashes the following commits:
9193cf3 [Sean Owen] Document that --zone defaults to a single random zone
Diffstat (limited to 'ec2')
-rwxr-xr-x | ec2/spark_ec2.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index a4ab844a56..742c7765e7 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -86,7 +86,7 @@ def parse_args(): "-z", "--zone", default="", help="Availability zone to launch instances in, or 'all' to spread " + "slaves across multiple (an additional $0.01/Gb for bandwidth" + - "between zones applies)") + "between zones applies) (default: a single zone chosen at random)") parser.add_option("-a", "--ami", help="Amazon Machine Image ID to use") parser.add_option( "-v", "--spark-version", default=DEFAULT_SPARK_VERSION, |