當嘗試啓動使用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
任何修復?
你可以添加你正在嘗試使用的命令嗎? – Guy
聽起來像你正在使用的ami與實例類型不兼容(c4實例只有hvm) –
正如其他人指出的(並且在上面的輸出中暗示),此實例類型尚不受支持。當它無法識別實例類型時,可以嘗試[黑客腳本默認爲hvm](https://github.com/apache/spark/blob/50ab8a6543ad5c31e89c16df374d0cb13222fd1e/ec2/spark_ec2.py#L401-L403)。 –