Skip to content

Athena - HIVE_UNKNOWN_ERROR: java.net.URISyntaxException: Relative path in absolute URI: arn:aws:dynamodb

0

Using Glue Crawler created Catalog Table for a DynamoDB data source, and that was successful. I could see the column names correctly in the schema section of Catalog Table. With Athena trying to run a SELECT query, and it is throwing the following error:

HIVE_UNKNOWN_ERROR: java.net.URISyntaxException: Relative path in absolute URI: arn:aws:dynamodb:us-east-2:XXXXXXXXXXXXX:table/dydb_sales_data This query ran against the "catlog_dydb_sales_data" database, unless qualified by the query. Please post the error message on our forum or contact customer support with Query Id: 61011e40-b3d2-41df-af0e-bbcb70e171aa

Also, noticed that in Athena, it shows Tables (0). It is suppose to show one table, with column details. For the Catalog table for S3 data source, this issue is not there. It is only for the DynamoDB as data source. Please let me know how to resolve it.

asked 3 years ago2.4K views

2 Answers
0

While using Custom SQL in Quicksight, you have to mention the catalog name as well in addition to the database and table name. If you only mention the database and table name, it will throw the above-mentioned error. For example,

SELECT * FROM "database-occupancy"."table-chanel_occupancy_sample" limit 10; does not have the catalog mentioned in the SQL Query and this has a format of SELECT * FROM "database"."table" limit 10;

Correct way to avoid this error [ "HIVE_UNKNOWN_ERROR: java.net.URISyntaxException: Relative path in absolute URI: arn:aws:dynamodb" ] is to follow below format: SELECT * FROM "Catalog"."database"."table" limit 10; . So you can write in QuickSight,

SELECT * FROM "Catalog-Occupancy"."database-occupancy"."table-chanel_occupancy_sample" limit 10;

Because we are creating a dedicated data source in Athena, it is mandatory to write that in the QuickSight SQL Query .

answered 2 years ago

-1

That kind of table (DynamoDB) is not supported by Athena (it's only supported in Glue jobs).
Athena has it's own way of querying DynamoDB using federated queries

AWS
EXPERT

answered 3 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.