amazon-web-services - AWS Glue 使用 Cli 安排作业

标签 amazon-web-services aws-cli aws-glue

我想问如何从 AWS cli 或 boto3 安排 AWS Glue 作业。

官方没找到documentation boto3 documentation 之一

enter image description here

我知道还有另一种方法,包括创建链接到作业的触发器,但我不确定推荐的方法是哪种。

提前谢谢您。

最佳答案

据我所知,AWS 记录的最好(主观)方法是首先创建一个 JSON 文件,例如:

{
  "Name": "your_schedule",
  "Description": "AWS GLUE docs suck",
  "Schedule": "cron(0 12 * * ? *)",
  "Actions": [
    {
      "JobName": "test_job"
    }
  ]
}

然后将其作为参数提供给 awsglue,如下所示:

aws glue create-trigger --type SCHEDULED --cli-input-json file://your_job_schedule.json

如果所有位都正确,输出应如下所示:

{
    "Name": "your_schedule"
}

JSON 文件的完整语法为 here .

您需要的文档是:

关于amazon-web-services - AWS Glue 使用 Cli 安排作业,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/72116097/

相关文章:

amazon-web-services - 如何在特定时间后自动删除 AWS Cognito 用户

amazon-web-services - 使用命令行工具将 Swagger API 导入 AWS API Gateway

aws-glue - 在 AWS Glue 中读取配置文件

amazon-web-services - 无服务器 Web 应用程序,具有自动创建、计划的一次性作业

mysql - RDS MySQL 错误 1045 (28000) : Access denied for user when connecting to db from EC2

python - 在 Amazon AWS 上的 PyPy 上运行 Django 应用程序

json - 如何在 shell 脚本中读取 awscli 响应

dataframe - Glue PySpark - 固定宽度文件处理和验证

amazon-web-services - 从胶水Cloudformation模板对Athena表进行分区

node.js - 如何在 DynamoDB 中查询不存在的(空)属性