English 中文(简体)
为什么在Iceberg表格插入Athena报告“没有具体的关键”?
原标题:Why does Athena report "The specified key does not exist" when inserting to an Iceberg table?

I m 在Athena创建Iceberg表格,如:

CREATE TABLE IF NOT EXISTS table1 (`col1` string, `col2` string) 
LOCATION  s3://my-bucket/path/table1/ 
TBLPROPERTIES ( table_type = ICEBERG ,  format = parquet )

并试图在表格中添加价值观,如:

INSERT INTO table1 VALUES ( hello ,  iceberg )

我遇到这样的错误:

GENERIC_INTERNAL_ERROR:
io.trino.hdfs.s3.TrinoS3FileSystem$UnrecoverableS3OperationException:
com.amazonaws.services.s3.model.AmazonS3Exception:
The specified key does not exist. (Service: Amazon S3; Status Code: 404; Error Code: NoSuchKey; Request ...

我做了什么错误?

问题回答

The location is being set incorrectly, and should not include a trailing /.

核对<代码>aws s3 ls s3 http://my-bucket/path/table1/ - 收到。 如果你看到<代码>/的关键,例如s3 http://my-bucket/path/table1/metadata/...,你就遇到了这一问题。 <代码>/是一个有用的信号,表明您的外在条目中添加了<代码>/。

简而言之,在座标上没有挂图<>/。

CREATE TABLE IF NOT EXISTS table1 (`col1` string, `col2` string) 
LOCATION  s3://my-bucket/path/table1 
TBLPROPERTIES ( table_type = ICEBERG ,  format = parquet )




相关问题
Mount windows shared drive to MWAA in bootscript

In MWAA startup script sudo yum install samba-client cifs-utils -y sudo mount.cifs //dev/test/drop /mnt/dev/test-o username=testuser,password= pwd ,domain=XX Executing above commonds giving error - ...

How to get Amazon Seller Central orders programmatically?

We have been manually been keying Amazon orders into our system and would like to automate it. However, I can t seem to figure out how to go about it. Their documentation is barely there. There is: ...

Using a CDN like Amazon S3 to control access to media

I want to use Amazon S3/CloudFront to store flash files. These files must be private as they will be accessed by members. This will be done by storing each file with a link to Amazon using a mysql ...

unable to connect to database on AWS

actually I have my website build with Joomla hosted on hostmonster but all Joomla website need a database support to run this database is on AWS configuration files need to be updated for that I ...

Using EC2 Load Balancing with Existing Wordpress Blog

I currently have a virtual dedicated server through Media Temple that I use to run several high traffic Wordpress blogs. Both tend to receive sudden StumbleUpon traffic surges that (I m assuming) ...

SSL slowness in EC2

We ve deployed our rails app to EC2. In our setup, we have two proxies on small instances behind round-robin DNS. These run nginx load balancers for a dynamically growing and shrinking farm of web ...

热门标签