Error in Athena: database does not exist

0

Hi !

I have been a long time trying to solve this error without success. I have already verified the existence of the database, the region, etc. Any help would be great. Thanks!Enter image description here

preguntada hace un año2005 visualizaciones
1 Respuesta
1

I have faced this issue earlier and I feel the error message here is misleading. I was able to resolve this issue by providing access to the database and tables through Lakeformation. Let me explain what I had to do:

  • Do you have Lake formation turned on? If so, you would have to provide Database level and table level access from there. The fact that you are seeing your databases and tables implies that you have you have describe access on the database/table but not select access.
  • You don't have lakeformation turned on? Check if your user/role has these permissions: "glue:GetDatabases", "glue:GetDatabase","glue:GetTables", "glue:GetPartitions","glue:GetPartition","glue:GetTable"
  • In some cases, this could be due to compatibility of the table such as XML table - https://aws.amazon.com/premiumsupport/knowledge-center/athena-glue-tables-not-visible/
  • If you still have the issue, verify that your tables, columns, and queries comply with Athena requirements. For more information, see Names for Tables, Databases, and Columns and Troubleshooting in the Athena User Guide.
profile pictureAWS
respondido hace un año
  • Unfortunately this didn't work. I verified that the Lake formation is off, I have all the permissions needed in the user/role, my tables meet the formatting requirements and my tables and components comply with Athena requirements. If you discover another reason for the error would be great.

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas