【发布时间】:2018-05-03 03:09:04
【问题描述】:
我正在尝试连接到我的 Heroku 数据库,但遇到以下与 SSL 相关的一系列错误:
SSL connection to data store using host matching failed. Retrying without host matching.
SSL connection to data store failed. Retrying without SSL.
Check that your connection definition references your JDBC database with correct URL syntax, username, and password. org.postgresql.util.PSQLException: Connection attempt timed out.
我设法使用 DBeaver 连接到数据库并遇到了类似的 SSL 问题,直到我将 SSL 工厂设置为 org.postgresql.ssl.NonValidatingFactory,但 Glue 不提供任何 SSL 选项。
数据库实际上托管在 AWS 上,连接 URL 是:
jdbc:postgresql://ec2-52-19-160-2.eu-west-1.compute.amazonaws.com:5432/something
(ps.AWS Glue 论坛毫无用处!他们似乎没有回答任何人的问题)
【问题讨论】:
-
你解决过这个问题吗?我也在尝试从 aws 胶水连接到我的 heroku postgres 数据库,并且遇到了同样的问题。
-
不,事实证明您需要使用 SSL 连接到 heroku 的 posgres 数据库,但在我发布它时 Glue 没有提供此功能。 AWS 支持表示它在待办事项列表上。我放弃了 Glue,现在将 Step Functions 用于我的所有 AWS 编排。容易得多。
标签: postgresql amazon-web-services ssl aws-glue