【发布时间】:2019-06-08 00:46:58
【问题描述】:
我开始使用 AWS Glue,并希望通过 JDBC 连接到我的本地 mysql 服务器。
我遵循文档,使用正确的 jdbc 连接字符串创建用于粘合 IAM 角色、策略、安全组和连接。 但是当我测试连接时,我会收到以下 CloudWatch 记录:
"Check that your connection definition references your JDBC database with
correct URL syntax, username, and password. Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The
driver has not received any packets from the server.
Exiting with error code 30"
我很确定 jdbc 连接字符串是正确的。
Glue 配置中的某些内容必须丢失或错误。
【问题讨论】:
-
您能否检查您是否已正确配置安全组和 JDBC 连接。请参阅 docs.aws.amazon.com/glue/latest/dg/… 并且如果一切看起来都像文档中一样完整,那么请尝试从您正在创建的子网启动 ec2 机器连接并测试ec2和你的数据库之间的连接
-
本地 mysql 服务器是指它在您的私有网络中运行,而不是在 AWS 环境中运行?
-
是的,严格,就是这样。我的私有网络而不是 AWS 环境。该数据库是公开可用的。
标签: amazon-web-services aws-glue