gpt4 book ai didi

amazon-web-services - 在 AWS Data Pipeline 中使用参数一段时间时出错

转载 作者:行者123 更新时间:2023-12-02 04:04:17 24 4
gpt4 key购买 nike

我尝试在 AWS 上创建一个参数化管道,旧的参数工作正常,除了要插入句点的参数之外:

{
"id": "DefScheduler",
"type": "Schedule",
"startDateTime": "2016-09-26T00:00:00",
"period": "#{myPeriod}"
}

当我在 AWS 控制台上打开架构师 View 时,我看到以下错误:

Object:DefScheduler
ERROR: 'period' value should be of the form: <number> [SECONDS|MINUTES|HOURS|DAYS|WEEKS|MONTHS]

该值在参数 json 文件中定义如下:

{
"description": "How ofter do you want to run the job",
"id": "myPeriod",
"type": "String",
"watermark":"1 HOURS",
"default":"1 HOURS"
},

我尝试用定义的值覆盖它,但没有成功。有任何想法吗?谢谢!

最佳答案

你能尝试“小时”吗?

根据文档 period指定如下:

Period

Indicates how often a scheduled event should run. It's expressed in the format "N [years|months|weeks|days|hours|minutes]", where N is a positive integer value.

The minimum period is 15 minutes and the maximum period is 3 years.

The following example sets the period field of the Schedule object to 3 hours. This creates a schedule that runs every three hours.

"period" : "3 hours"

关于amazon-web-services - 在 AWS Data Pipeline 中使用参数一段时间时出错,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40288606/

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