我在 Google Cloud Data Fusion Pipeline 中配置数据库连接时出错。
"Encountered SQL error while getting query schema: 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."
我们无法在公司大楼外进行连接,因为公司 IP 已在 AWS 安全设置中列入白名单。我可以在公司内部使用 mysql workbench 轻松查询,所以我猜我需要向我们的 AWS 安全组添加一些 IP 以提供数据融合权限?我找不到这方面的指南。我在哪里可以找到需要在 AWS 中提供的 IP? (假设可能会解决它)
我已经使用“mysql-connector-java-8.0.17.jar”添加了一个 mysql 插件工件,它由插件名称“mysql-connector-java”引用。
最佳答案
在 GCP VPC 和 RDS 所在的 AWS VPC 之间建立 VPN
https://cloud.google.com/solutions/using-gcp-apis-from-an-external-network
https://cloud.google.com/solutions/automated-network-deployment-multicloud
关于amazon-web-services - 如何允许 Google Cloud Data Fusion 连接到 AWS RDS MySQL 数据库?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/59557630/