从 create_job 启用 AWS Glue 连续记录
Enable AWS Glue Continuous Logging from create_job
我正在为这个新作业使用 boto3 create_job
. I was interested to pass a parameter to enable Continuous Logging(无过滤器)创建 Glue 作业。
不幸的是here or here我找不到任何有用的参数来启用它。
有什么建议吗?
找到了一种方法,它类似于其他参数,您只需要在默认参数中传递这些与日志相关的参数,例如 -
glueClient.create_job(
Name="testBoto",
Role="Role_name",
Command={
'Name': "some_name",
'ScriptLocation' : "some_location"
},
DefaultArguments={
"--enable-continuous-cloudwatch-log": "true",
"--enable-continuous-log-filter": "true"
}
)
我正在为这个新作业使用 boto3 create_job
. I was interested to pass a parameter to enable Continuous Logging(无过滤器)创建 Glue 作业。
不幸的是here or here我找不到任何有用的参数来启用它。
有什么建议吗?
找到了一种方法,它类似于其他参数,您只需要在默认参数中传递这些与日志相关的参数,例如 -
glueClient.create_job(
Name="testBoto",
Role="Role_name",
Command={
'Name': "some_name",
'ScriptLocation' : "some_location"
},
DefaultArguments={
"--enable-continuous-cloudwatch-log": "true",
"--enable-continuous-log-filter": "true"
}
)