簡體   English   中英

GlueJobRunnerSession 無權執行:lakeformation:GetDataAccess on resource

[英]GlueJobRunnerSession is not authorized to perform: lakeformation:GetDataAccess on resource

我正在嘗試在我的 aws 膠水作業中使用 glueContext.purge_table 函數。 每當執行作業時,它都會拋出以下錯誤:

An error occurred while calling o82.purgeTable.
: java.lang.RuntimeException: class com.amazonaws.services.gluejobexecutor.model.AccessDeniedException:User: arn:aws:sts::012345678:assumed-role/XYZ/GlueJobRunnerSession is not authorized to perform: lakeformation:GetDataAccess on resource: arn:aws:glue:us-east-1:MICHIGAN_DEFAULT_CATALOG_ID_RANDOMIZED:table/database/table (Service: AWSLakeFormation; Status Code: 400; Error Code: AccessDeniedException; Request ID: 25829fe6-2a10-430a-b050-023c13bcc8ce; Proxy: null) (Service: AWSGlueJobExecutor; Status Code: 400; Error Code: AccessDeniedException; Request ID: ed60ddfa-8263-486a-b9f6-1dd57cbfd9bd; Proxy: null)

該角色附加了以下策略: 在此處輸入圖像描述

任何幫助將不勝感激。

您還需要為您的工作角色提供完整的LakeFormation訪問權限,因為您似乎激活了LakeFormation

只是為了澄清這一點,您需要將“AWSLakeFormationDataAdmin”策略添加到您用於運行 Glue 作業的 IAM 角色。

此外,在 Lake Formation 端,您需要確保上述原則(IAM 角色)具有數據湖權限以訪問數據目錄的 Glue 元數據表。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM