gpt4 book ai didi

aws-cloudformation - 在云形成模板的数据管道对象列表中添加 EMR 配置时数据管道验证错误

转载 作者:行者123 更新时间:2023-12-03 07:42:33 26 4
gpt4 key购买 nike

如果我在数据管道对象列表中添加“配置”对象,则会收到错误:

Pipeline Definition failed to validate because of following Errors:
[{ObjectId = 'SampleEMRCluster', errors = [Fields with references
to scheduable objects or preconditions can not be added to existing objects.
Found 'configuration']}]

在添加此之前,合成器和部署工作正常,数据管道也工作正常。以下是合成云形成模板的相关部分:

        "PipelineObjects": [
{
"Fields": [
{
"Key": "type",
"StringValue": "Default"
},
{
"Key": "maxActiveInstances",
"StringValue": "1"
},
{
"Key": "scheduleType",
"StringValue": "cron"
},
{
"Key": "pipelineLogUri",
"StringValue": {
"Fn::Join": [
"",
[
"s3://",
{
"Ref": "sampleprodnaA928775C"
},
"/data-pipeline-logs/"
]
]
}
},
{
"Key": "role",
"StringValue": {
"Ref": "DPRoleprodna120283D1"
}
},
{
"Key": "resourceRole",
"StringValue": {
"Ref": "DPResourceRoleprodna6634AAB4"
}
},
{
"Key": "failureAndRerunMode",
"StringValue": "CASCADE"
},
{
"Key": "schedule",
"RefValue": "DefaultSchedule"
}
],
"Id": "Default",
"Name": "Default"
},
{
"Fields": [
{
"Key": "type",
"StringValue": "Schedule"
},
{
"Key": "startAt",
"StringValue": "FIRST_ACTIVATION_DATE_TIME"
},
{
"Key": "period",
"StringValue": "1 hour"
}
],
"Id": "DefaultSchedule",
"Name": "Every 1 hour"
},
{
"Fields": [
{
"Key": "type",
"StringValue": "EmrCluster"
},
{
"Key": "coreInstanceType",
"StringValue": "i3.xlarge"
},
{
"Key": "coreInstanceCount",
"StringValue": "1"
},
{
"Key": "masterInstanceType",
"StringValue": "i3.xlarge"
},
{
"Key": "terminateAfter",
"StringValue": "1 hour"
},
{
"Key": "resourceRole",
"StringValue": "EMR_EC2_DefaultRole"
},
{
"Key": "role",
"StringValue": "EMR_DefaultRole"
},
{
"Key": "subnetId",
"StringValue": {
"Ref": "VpcPrivateSubnet1Subnet536B997F"
}
},
{
"Key": "emrManagedMasterSecurityGroupId",
"StringValue": {
"Ref": "EMRControllerC4OFF237"
}
},
{
"Key": "emrManagedSlaveSecurityGroupId",
"StringValue": {
"Ref": "EMRWorkerE1C2639A"
}
},
{
"Key": "serviceAccessSecurityGroupId",
"StringValue": {
"Ref": "EMRServiceAccessB1B4D1B5"
}
},
{
"Key": "releaseLabel",
"StringValue": "emr-5.30.0"
},
{
"Key": "configuration",
"RefValue": "SparkConfiguration"
}
],
"Id": "SampleEMRCluster",
"Name": "SampleEMRCluster"
},
{
"Fields": [
{
"Key": "type",
"StringValue": "EmrConfiguration"
},
{
"Key": "classification",
"StringValue": "spark"
},
{
"Key": "property",
"RefValue": "sparkProperty01"
}
],
"Id": "SparkConfiguration",
"Name": "SparkConfiguration"
},
{
"Fields": [
{
"Key": "type",
"StringValue": "Property"
},
{
"Key": "key",
"StringValue": "maximizeResourceAllocation"
},
{
"Key": "value",
"StringValue": "true"
}
],
"Id": "sparkProperty01",
"Name": "sparkHiveSiteProperty01"
},
...//other pipeline objects
]

有人可以帮助我理解模板中有什么问题吗?

最佳答案

在 AWS 中创建数据管道后,某些字段将无法编辑(添加配置、更改 emr 步骤依赖项似乎是其中的一部分)。手动删除 UI 中的堆栈并重试有效。一些无法编辑字段的文档:https://docs.aws.amazon.com/datapipeline/latest/DeveloperGuide/dp-manage-pipeline-modify-console.html

关于aws-cloudformation - 在云形成模板的数据管道对象列表中添加 EMR 配置时数据管道验证错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63059960/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com