我觉得这应该比对我更容易。将数据从S3复制到Redshift
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"
我使用的Navicat PostgreSQL的连接到红移和Im在Mac上运行。
是的,这正是需要使用的......我期望需要提供的不仅仅是存储桶名称。 – lcm