2015-04-17 99 views
0

當嘗試啓動使用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 

任何修復?

+0

你可以添加你正在嘗試使用的命令嗎? – Guy

+0

聽起來像你正在使用的ami與實例類型不兼容(c4實例只有hvm) –

+0

正如其他人指出的(並且在上面的輸出中暗示),此實例類型尚不受支持。當它無法識別實例類型時,可以嘗試[黑客腳本默認爲hvm](https://github.com/apache/spark/blob/50ab8a6543ad5c31e89c16df374d0cb13222fd1e/ec2/spark_ec2.py#L401-L403)。 –

回答

3

您正在使用的實例類型在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

+0

我用c1.medium創建了一個集羣,並且我的SPARK命令都不會運行;他們都給了我一個「內存不足」。這恰好在集羣啓動後使用EMR。 – vy32

+0

你好@ vy32!如果您有新問題,我邀請您在新問題中提出。我真的不明白你的問題是什麼 – eliasah

相關問題