AWSGlueJob并行运行出现“速率超过限制”ThrottlingException状态码:400错误。
创始人
2024-09-25 15:31:08
0

这个错误通常是由于作业并行设置不正确或作业资源不足引起的。为解决此错误,请尝试以下解决步骤:

  1. 调整AWS Glue作业的并行度限制,以减小并行度并减轻对资源的需求。

  2. 增加作业的资源,比如增加作业的计算资源或调整分配给作业的机器学习资源的容量。

  3. 确保作业的代码正确、无误,没有重复的任务或不必要的任务,这些任务会增加CPU的使用率,造成ThrottlingException。

示例代码:

  1. 调整作业并行度——

import boto3

glue = boto3.client("glue")

job_name = "my-glue-job"

Get the current JobRun configuration

response = glue.get_job_run(JobName=job_name, RunId='my-run-id')

Check if the error message is due to throttling

if "Rate exceeded" in response["JobRun"]["ErrorMessage"]:

Reduce the parallelism by setting a lower Maximum Capacity

Value must be between 2 and 100

response = glue.update_job(JobName=job_name, MaxCapacity=50)

Re-run the job

response = glue.start_job_run(JobName=job_name)

  1. 增加作业资源——

import boto3

glue = boto3.client('glue')

job_name = "my-glue-job"

Increase workers count

response = glue.update_job(JobName=job_name, NumberOfWorkers=5)

Increase worker type

response = glue.update_job(JobName=job_name, WorkerType='G.2X')

Increase memory allocation

response = glue.update_job(JobName=job_name, MaxCapacity=2)

Re-run the job

response = glue.start_job_run(JobName=job_name)

  1. 检查代码——

import boto3

glue = boto3.client('glue')

job_name = "my

相关内容

热门资讯

五分钟辅助!哈糖大菠萝助手,h... 五分钟辅助!哈糖大菠萝助手,hhpoker软件安装包,教材教程(发现有挂)1、上手简单,内置详细流程...
第3分钟辅助!拱趴大菠萝作弊方... 第3分钟辅助!拱趴大菠萝作弊方法,xpoker辅助怎么用,手册教程(有挂透明挂)一、拱趴大菠萝作弊方...
两分钟辅助!poker辅助器免... 两分钟辅助!poker辅助器免费安装,hhpoker有没有外挂,大纲教程(有挂助手)1、很好的工具软...
第三分钟辅助!wpk透视怎么安... 第三分钟辅助!wpk透视怎么安装,hhpoker透视脚本视频,演示教程(有挂技巧)暗藏猫腻,小编详细...
第4分钟辅助!菠萝德普辅助器免... 第4分钟辅助!菠萝德普辅助器免费版在哪里,wepoker免费透视,教材教程(真实有挂)1、让任何用户...
五分钟辅助!德州透视hhpok... 五分钟辅助!德州透视hhpoker,wepoker透视器免费,绝活儿教程(揭秘有挂)1、wepoke...
第八分钟辅助!aa poker... 第八分钟辅助!aa poker辅助包,hhpoker脚本,模块教程(果真有挂)1、首先打开aa po...
3分钟辅助!epoker底牌透... 3分钟辅助!epoker底牌透视,德普之星透视,策略教程(有挂细节)1)德普之星透视辅助插件:进一步...
2分钟辅助!wepoker手机... 2分钟辅助!wepoker手机助手,pokermaster辅助器,法子教程(有挂工具)亲,关键说明,...
第五分钟辅助!pokemmo辅... 第五分钟辅助!pokemmo辅助器手机版下载,拱趴大菠萝怎么开挂,教材教程(有挂功能)1、玩家可以在...