diff options
author | Patrick Wendell <pwendell@gmail.com> | 2013-05-10 15:13:22 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2013-05-10 15:13:22 -0700 |
commit | e8a1d029564c8f050a1b727ca23ae4829a9e0ed3 (patch) | |
tree | ba5f5dee1666e157cefe7cf58325c03bd22b4eff /ec2/spark_ec2.py | |
parent | 2197b2159a472296af30132a790b74f1442f19c1 (diff) | |
download | spark-e8a1d029564c8f050a1b727ca23ae4829a9e0ed3.tar.gz spark-e8a1d029564c8f050a1b727ca23ae4829a9e0ed3.tar.bz2 spark-e8a1d029564c8f050a1b727ca23ae4829a9e0ed3.zip |
Adding support for tag
Diffstat (limited to 'ec2/spark_ec2.py')
-rwxr-xr-x | ec2/spark_ec2.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/ec2/spark_ec2.py b/ec2/spark_ec2.py index b4a5925679..d05b767cb8 100755 --- a/ec2/spark_ec2.py +++ b/ec2/spark_ec2.py @@ -64,9 +64,9 @@ def parse_args(): help="Availability zone to launch instances in, or 'all' to spread " + "slaves across multiple (an additional $0.01/Gb for bandwidth" + "between zones applies)") - parser.add_option("-a", "--ami", default="v0.7.0", - help="Amazon Machine Image ID to use, or 'vX.Y.Z' to use version " + - "X.Y.Z of Spark (default: v0.7.0)") + parser.add_option("-a", "--ami", default="latest", + help="Amazon Machine Image ID to use, 'vX.Y.Z' to use version " + + "X.Y.Z of Spark, or 'latest' to use latest AMI (default: latest)") parser.add_option("-D", metavar="[ADDRESS:]PORT", dest="proxy_port", help="Use SSH dynamic port forwarding to create a SOCKS proxy at " + "the given local address (for use with login)") @@ -186,7 +186,7 @@ def get_spark_ami(opts): instance_type = "pvm" print >> stderr,\ "Don't recognize %s, assuming type is pvm" % opts.instance_type - if version != "v0.7.0": + if version not in ["latest", "v0.7.0"]: print >> stderr, \ "Don't know how to resolve AMI for version: %s" % version # TODO(pwendell) Once we have multiple Spark AMI versions, we should let |