【发布时间】:2017-07-07 09:58:24
【问题描述】:
尝试将大型 TPCH 表数据从 S3 复制到我的 AWS RDS 实例时,我收到以下错误:
An error occurred when executing the SQL command:
copy orders from 's3://aqa-pat/tpchData/tpchRawData/100G/orders.tbl'
credentials 'aws_iam_role=arn:aws:iam::183326689449:role/RedshiftRole'
delimiter ...
[Amazon](600000) Error setting/closing connection: Connection reset by peer. [SQL State=HY000, DB Errorcode=600000]
1 statement failed.
Execution time: 15m 3s
我正在运行 TPCH 基准测试并使用 TPC 的 dbgen 工具创建了单独的表文件,并且仅在上传订单和 lineitems 表时收到此连接错误。其他表已加载。
我应该怎么做才能解决这个问题?将我的实例的区域更改为 S3 存储桶的区域?
【问题讨论】:
-
"Execution time: 15m 3s" - 如果你正在运行一个需要很长时间的 SQL 命令,那么你做错了什么。找到另一种实现方式,例如分片。
标签: amazon-web-services amazon-s3 amazon-redshift