- Newest
- Most votes
- Most comments
The issue you're experiencing with Athena - a query stuck for 24 hours and an unresponsive console - is unusual and indicates a potential problem that needs addressing.
Here are some possible causes and solutions:
-
Internal Athena Error: You might be experiencing an INTERNAL_ERROR_QUERY_ENGINE issue, which is an error that occurs on Athena's query engine side rather than being caused by user input. This type of error can sometimes cause queries to hang.
-
Data or Query Complexity Issues: Even though your query is simple (SELECT * with LIMIT 10), there could be issues with the underlying data structure, file format, or size that's causing problems.
-
Browser/Console Issues: The unresponsiveness might be related to the Athena console itself rather than the actual query execution.
Here are steps you can take to resolve this:
-
Try a Different Browser or Incognito Mode: This can help determine if it's a browser cache/cookie issue.
-
Access Athena Through AWS CLI: Instead of using the console, try running or canceling your query using the AWS CLI commands.
-
Check Query Status via API: Use the AWS CLI or SDK to check the status of your query without loading the console.
-
Contact AWS Support: If the problem persists, you may need to contact AWS Support as this could be related to an internal Athena system issue.
-
Review Your Data: Ensure your CSV file is properly formatted and not excessively large. Consider optimizing your data by using columnar formats like Parquet or ORC for better performance.
-
Check Permissions: Verify that your IAM role has the necessary permissions to access both the Athena service and the AWS Glue Data Catalog.
Once you regain access to Athena, consider implementing best practices like partitioning your data and using optimized file formats to improve query performance and prevent similar issues in the future.
Sources
ErrorCode: INTERNAL_ERROR_QUERY_ENGINE | AWS re:Post
INTERNAL_ERROR_QUERY_ENGINE | AWS re:Post
Community | What happens when you run a query in Amazon Athena?
Relevant content
asked 2 years ago
- AWS OFFICIALUpdated a year ago
