【问题标题】:Redshift COPY command takes foreverRedshift COPY 命令需要很长时间
【发布时间】:2020-06-11 21:50:13
【问题描述】:

我使用 Terraform 创建了一个全新的 Redshift 集群。我能够连接到它并运行 COPY 命令,但即使对于 10 行的小型 CSV 文件,它也需要很长时间。我已经重新启动了集群,但还是一样。 stl_load_errors 表中也没有错误。 有人遇到过类似的问题吗?

【问题讨论】:

标签: amazon-redshift


【解决方案1】:

这是用于创建 VPC 端点的 Terraform 代码。也许在某个时候我会为 Redshift 创建完整的模板并更新这篇文章。

resource "aws_vpc_endpoint" "s3_vpc_endpoint" {
  vpc_id       = aws_vpc.vpc.id
  service_name = "com.amazonaws.${var.region}.s3"
}

resource "aws_vpc_endpoint_route_table_association" "s3_vpc_endpoint_route_table_association" {
  route_table_id  = aws_route_table.route_table.id
  vpc_endpoint_id = aws_vpc_endpoint.s3_vpc_endpoint.id
}

【讨论】:

    猜你喜欢
    • 2016-06-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-07-10
    • 2012-01-17
    • 2013-09-07
    • 2020-08-26
    • 2014-10-09
    相关资源
    最近更新 更多