【发布时间】:2015-10-03 06:58:46
【问题描述】:
我觉得这应该比我做的要容易得多。
copy table
from 's3://s3-us-west-1.amazonaws.com/bucketname/filename.csv'
CREDENTIALS 'aws_access_key_id=my-access;aws_secret_access_key=my-secret'
REGION 'us-west-1';
注意,我在遇到问题后添加了 REGION 部分,但什么也没做。
我感到困惑的是,在存储桶属性中只有https://path/to/the/file.csv。我只能假设我读过的所有文档都要求路径以 s3://... 开头,我只需将 https 更改为 s3,如我的示例中所示。
但是我得到了这个错误:
"Error : ERROR: S3ServiceException:
The bucket you are attempting to access must be addressed using the specified endpoint.
Please send all future requests to this endpoint.,Status 301,Error PermanentRedirect,Rid"
我正在使用 PostgreSQL 的 navicat 连接到 Redshift 并在 mac 上运行。
【问题讨论】:
标签: postgresql amazon-s3 amazon-redshift navicat