数据管道无法连接到 Redshift

Datapipeline can't connect to Redshift

我已将 Redshift 集群从 VPC 中的快照恢复到 EC2 Classic。我已经转移了我的旧数据管道并使用我的新集群的 JDBC 连接更新了它们的管道定义。

但是,当我尝试重新运行管道时,出现以下错误:

df-041104839VS05ZRRF9GE amazonaws.datapipeline.database.ConnectionFactory: Unable to establish connection to jdbc:postgresql://adops-etl.cxp7sr869idv.us-east-1.redshift.amazonaws.com:5439/staging?tcpKeepAlive=true Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.

我现在需要使用此集群和管道从 VPC 迁移到 EC2 Classic 的其他配置吗?

检查安全组和组内的规则。 确保允许您的 ip 使用正确的端口号连接到 Redshift。 如果您的连接是基于 SSL 的,端点会发生变化。

我最终通过从现有管道复制管道定义并将其详细信息替换为我的新管道的详细信息来解决此问题。在某些时候,Amazon 改变了他们构建管道定义的方式 JSON,格式上的差异不知何故导致了这个错误。