运行 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
EXPERTE
gefragt vor 5 Monaten28 Aufrufe
1 Antwort
0

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

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

profile picture
EXPERTE
beantwortet vor 5 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen