如何启动6个核心节点emr集群,每个家庭有2个节点。
[
{
"Name": "MasterFleet",
"InstanceFleetType": "MASTER",
"TargetOnDemandCapacity": 1,
"InstanceTypeConfigs": [{"InstanceType": "m4.xlarge"}]
},
{
"Name": "CoreFleet",
"InstanceFleetType": "CORE",
"TargetSpotCapacity": 6,
"LaunchSpecifications": {
"SpotSpecification": {
"TimeoutDurationMinutes": 10,
"TimeoutAction": "SWITCH_TO_ON_DEMAND"
}
},
"InstanceTypeConfigs": [
{
"InstanceType": "m4.large",
"BidPrice": "0.1"
},
{
"InstanceType": "m4.xlarge",
"BidPrice": "0.2"
},
{
"InstanceType": "m4.2xlarge",
"BidPrice": "0.4"
}
]
}
]
我在aws cli create cluster脚本中传递了config.json文件。
aws emr create-cluster \
--instance-fleets file://config.json
它根据默认分配策略“lowestPrice”分配来自同一系列的所有实例,如何通过属性“多样化”使其从不同的系列启动实例?
答案 0 :(得分:0)
除了大写之外,这看起来是正确的:" Masterfleet"和" Corefleet" - 不是" MasterFleet"和" CoreFleet"。可能想检查其他人。