阿帕奇星火EC2 c4.2xlarge没有推出
问题描述:
当尝试启动使用Apache星火EC2脚本中,我得到以下错误的EC2集群(c4.2xlarge):阿帕奇星火EC2 c4.2xlarge没有推出
Don't recognize c4.2xlarge, assuming type is pvm
Spark AMI: ami-9a6e0daa
Launching instances...
ERROR:boto:400 Bad Request
ERROR:boto:<?xml version="1.0" encoding="UTF-8"?>
<Response><Errors><Error><Code>InvalidParameterCombination</Code><Message>Virtualization type 'hvm' is required for instances of type 'c4.2xlarge'.</Message></Error></Errors
任何修复?
答
您正在使用的实例类型在spark-ec2脚本中不受支持。
这是EC2类型的列表,你可以使用:
c1.medium,c1.xlarge,c3.2xlarge c3.4xlarge c3.8xlarge c3.large c3.xlarge cc1.4xlarge,cc2.8xlarge cg1.4xlarge cr1.8xlarge hi1.4xlarge hs1.8xlarge i2.2xlarge i2.4xlarge i2.8xlarge i2.xlarge m1.large m1.medium m1.small m1.xlarge m2 .2xlarge,m2.4xlarge,m2.xlarge,m3.2xlarge,m3.large,m3.medium,m3.xlarge,r3.2xlarge,r3.4xlarge,r3.8xlarge,r3.large,r3.xlarge,t1.micro ,t2.medium,t2.micro,t2.small
我邀请您阅读脚本源代码here。
你可以添加你正在尝试使用的命令吗? – Guy
听起来像你正在使用的ami与实例类型不兼容(c4实例只有hvm) –
正如其他人指出的(并且在上面的输出中暗示),此实例类型尚不受支持。当它无法识别实例类型时,可以尝试[黑客脚本默认为hvm](https://github.com/apache/spark/blob/50ab8a6543ad5c31e89c16df374d0cb13222fd1e/ec2/spark_ec2.py#L401-L403)。 –