Error when query on database in glue catalog

1

Tried in CLI and console mode, when I clicked on a database in dsta catalog, getting below error

AccessDeniedException: Please migrate your catalog to enable access to this database

This Athena catalog was working before fine, not sure what changed internally. Any suggestions would be highly appreciated

Vaas
已提問 7 個月前檢視次數 450 次
1 個回答
3
已接受的答案

Hello,

This error generally occurs when an existing Athena data catalog has not yet been migrated to a new Glue Data Catalog which you might verify through Cloudtrail if anyone within your org performed the changes.

Further, performing the following AWS CLI command on the account that housing the database, the issue can be resolved, import the catalog

aws glue import-catalog-to-glue --catalog-id <acount_id> --region us-east-1

To check the status,

aws glue get-catalog-import-status --catalog-id <acount_id> --region us-east-1
AWS
支援工程師
已回答 7 個月前
profile pictureAWS
專家
已審閱 7 個月前
  • Thanks a lot! I was able to fix the issue with help of above instructions.

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

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

回答問題指南