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

相关内容

热门资讯

关于!微信微乐自建房辅助工具,... 关于!微信微乐自建房辅助工具,微乐家乡麻将自建房辅助app(开挂自建房)方法1)微乐家乡麻将自建房辅...
大家学习交流!微信卡五星辅助器... 大家学习交流!微信卡五星辅助器,微乐小程序免费黑科技(开挂自建房)方法1、很好的工具软件,可以解锁游...
三分钟了解!微乐微信自建房辅助... 三分钟了解!微乐微信自建房辅助工具插件,微乐家乡麻将自建房辅助app(开挂自建房)工具1、三分钟了解...
一分钟教会你!微乐家乡麻将自建... 一分钟教会你!微乐家乡麻将自建房辅助app,微乐自建房脚本免费入口(开挂自建房)方法1、用户打开应用...
分享实测!微信微乐自建房辅助工... 分享实测!微信微乐自建房辅助工具,微乐自建房脚本免费入口(开挂自建房)器1、起透看视 微信微乐自建房...
重大通报!微乐自建房辅助工具脚... 重大通报!微乐自建房辅助工具脚本,微乐小程序免费黑科技(开挂自建房)app微乐自建房辅助工具脚本破解...
如何分辨真伪!微乐微信自建房辅... 如何分辨真伪!微乐微信自建房辅助工具插件,微乐小程序免费黑科技(开挂自建房)技巧1、微乐微信自建房辅...
我来教教你!微乐自建房辅助工具... 我来教教你!微乐自建房辅助工具挂,微乐家乡麻将自建房辅助app(开挂自建房)工具1、玩家可以在微乐家...
重大来袭!微乐自建房辅助工具神... 重大来袭!微乐自建房辅助工具神器,微乐小程序免费黑科技(开挂自建房)器1、游戏颠覆性的策略玩法,独创...
带你了解!微信卡五星辅助器,微... 带你了解!微信卡五星辅助器,微乐自建房脚本免费入口(开挂自建房)方法1、带你了解!微信卡五星辅助器,...