【问题标题】:Copying Data From S3 to Redshift, Same Region but I get error将数据从 S3 复制到 Redshift,同一区域,但出现错误
【发布时间】:2021-08-06 05:31:55
【问题描述】:

我正在运行 COPY 命令,使用以下命令将数据从 S3 复制到 Redshift 中的临时表。

cur.execute("copy my_table from '{}' credentials 'aws_access_key_id=;aws_secret_access_key=' delimiter ',' csv region 'eu-west-1';".format(
        s3_bucket_uri))

问题是我收到以下错误

 S3ServiceException:The S3 bucket addressed by the query is in a different region from this cluster.

现在的问题是,这没有任何意义,因为我正在从与我加载它的集群相同的区域中获取文件的存储桶。

见下图。

【问题讨论】:

    标签: amazon-web-services amazon-s3 amazon-ec2 amazon-redshift


    【解决方案1】:

    删除区域选项。它认为是跨区域副本,但它在同一区域中。只是不要使用该选项。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2018-09-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-04-23
      • 2013-05-31
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多