运行 Glue Crawler 时出错

0

【以下的问题经过翻译处理】 你好,

作为 Lake Formation 设置的一部分,我正试着对S3上的一些数据进行分类。我使用crawler从 S3 桶中读取 CSV 文件。Crawler被设置了默认的 AWSGlueServiceRoleDefault IAM 角色,该角色具有对 S3 的完全访问权限。但是作业一直失败并出现以下错误:

ERROR : Insufficient Lake Formation permission(s) on s3://<<bucket-name>>/<<file-name>>

(Service: AWSGlue; Status Code: 400; Error Code: AccessDeniedException; Request ID: 6ca688e0-1b6d-11ea-9499-cb57d11186a3). For more information, see Setting up IAM Permissions in the Developer Guide (http://docs.aws.amazon.com/glue/latest/dg/getting-started-access.html)

根据文档,使用 AWSGlueServiceRoleDefault 应该有足够的权限执行crawler。大家有什么建议么?

profile picture
專家
已提問 5 個月前檢視次數 28 次
1 個回答
0

【以下的回答经过翻译处理】 如果您已在 Lake Formation 中注册 S3 路径,则 Lake Formation 将尝试根据 Lake Formation 中定义的权限(因此根本不使用 S3 IAM 权限)向 Glue 提供临时凭证以用于爬区该位置。因此,您需要在Lake Formation控制台为 AWSGlueServiceRoleDefault 授予对数据库和表的权限(至少select权限)。

查看本指南 以将权限迁移到 Lake Formation。

profile picture
專家
已回答 5 個月前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南