Github user sujeetv commented on a diff in the pull request:

    https://github.com/apache/spark/pull/960#discussion_r13366508
  
    --- Diff: ec2/spark_ec2.py ---
    @@ -203,52 +203,56 @@ def get_spark_shark_version(opts):
     # Attempt to resolve an appropriate AMI given the architecture and
     # region of the request.
     def get_spark_ami(opts):
    -    instance_types = {
    -        "m1.small":    "pvm",
    -        "m1.medium":   "pvm",
    -        "m1.large":    "pvm",
    -        "m1.xlarge":   "pvm",
    -        "t1.micro":    "pvm",
    -        "c1.medium":   "pvm",
    -        "c1.xlarge":   "pvm",
    -        "m2.xlarge":   "pvm",
    -        "m2.2xlarge":  "pvm",
    -        "m2.4xlarge":  "pvm",
    -        "cc1.4xlarge": "hvm",
    -        "cc2.8xlarge": "hvm",
    -        "cg1.4xlarge": "hvm",
    -        "hs1.8xlarge": "hvm",
    -        "hi1.4xlarge": "hvm",
    -        "m3.xlarge":   "hvm",
    -        "m3.2xlarge":  "hvm",
    -        "cr1.8xlarge": "hvm",
    -        "i2.xlarge":   "hvm",
    -        "i2.2xlarge":  "hvm",
    -        "i2.4xlarge":  "hvm",
    -        "i2.8xlarge":  "hvm",
    -        "c3.large":    "pvm",
    -        "c3.xlarge":   "pvm",
    -        "c3.2xlarge":  "pvm",
    -        "c3.4xlarge":  "pvm",
    -        "c3.8xlarge":  "pvm"
    -    }
    -    if opts.instance_type in instance_types:
    -        instance_type = instance_types[opts.instance_type]
    -    else:
    -        instance_type = "pvm"
    -        print >> stderr,\
    -            "Don't recognize %s, assuming type is pvm" % opts.instance_type
    -
    -    ami_path = "%s/%s/%s" % (AMI_PREFIX, opts.region, instance_type)
    -    try:
    -        ami = urllib2.urlopen(ami_path).read().strip()
    -        print "Spark AMI: " + ami
    -    except:
    -        print >> stderr, "Could not resolve AMI at: " + ami_path
    -        sys.exit(1)
    -
    -    return ami
    -
    +  instance_types = {
    --- End diff --
    
    ahh..my bad will send another one...


---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---

Reply via email to