【问题标题】:No Error in Redshift Copy command for loading ORC but the Redshift table is not updated加载 ORC 的 Redshift Copy 命令没有错误,但 Redshift 表未更新
【发布时间】:2020-02-01 11:08:28
【问题描述】:

我正在使用 COPY 命令将 Amazon S3 存储桶中的 ORC 文件加载到 Amazon Redshift 数据库。

复制命令成功运行,但 Redshift 表未更新。 我无法发现任何错误。

复制命令:

copy public."testairflow" 
from 's3://demofile/demo1.orc'  
iam_role 'arn:aws:iam::****'
format as ORC;

请告诉错误在哪里?

【问题讨论】:

  • Redshift 可能认为文件中没有任何数据。您可以尝试使用 Amazon Redshift Spectrum 或 Amazon Athena 读取文件以验证文件格式。

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


【解决方案1】:

我观察到,当您提供一个不存在的 S3 路径时,Redshift 会认为那里没有文件并返回成功。

始终确保您的路径正确且托管在与 Redshift 相同的区域(它不支持 colunar 文件的跨区域复制)。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-03-18
    • 2016-07-11
    • 1970-01-01
    • 1970-01-01
    • 2016-06-15
    • 1970-01-01
    相关资源
    最近更新 更多