【问题标题】:Unable to connect to Cloud SQL for SQL Server from Cloud Data Fusion无法从 Cloud Data Fusion 连接到 Cloud SQL for SQL Server
【发布时间】:2020-11-12 22:34:44
【问题描述】:

我无法从 Data Fusion 访问我的私有 Cloud SQL for SQL Server 实例。

我阅读了文档并遵循了所有这些步骤:

  1. 为 SQL Server 实例创建 Cloud SQL,在默认网络上使用私有 IP
  2. 在默认网络上使用私有 IP 创建了 Data Fusion 实例
  3. 在默认网络上的 Data Fusion 之间创建了对等连接
  4. 已检查默认网络上 Cloud SQL 之间的对等连接
  5. 授予数据融合服务帐户的 SQL 客户端角色
  6. 创建了防火墙规则以允许从 Data Fusion 私有 IP 类到默认网络的流量
  7. 在 Data Fusion 上安装了 sql server jdbc 驱动程序

我可以使用来自 vm 实例的私有 IP 连接到 Cloud SQL for SQL Server 实例,但我无法从 Data Fusion 连接到同一实例。

数据融合返回超时错误。

Error: Connection timed out: no further information. Verify the connection properties. Make sure that an instance of SQL Server is running on the host and accepting TCP/IP connections at the port. Make sure that TCP connections to the port are not blocked by a firewall.

对于 MySQL 和 Postgres,Cloud SQL 有特定的连接器,但 SQL Server 没有。

有人通过私有ip成功将Cloud SQL for SQL Server实例连接到Data Fusion?

【问题讨论】:

  • 由于您根据 GCP 文档配置连接所遵循的步骤,因此问题可能是特定情况。我建议您在 Cloud Console 中open a support case,这将使支持人员能够专注于调查您可能导致此连接失败的特定问题。
  • 您解决了这个问题吗?我想我可以帮忙
  • @jquinter 我也被困在同一点上。您还有其他解决方案要分享吗?

标签: google-cloud-sql


【解决方案1】:

我尝试在私有 IP 中创建 Data Fusion 并创建与我的 VPC 对等的 VPC,但仍然无法在私有 IP 中访问 CloudSQL,因此我为此创建了具有私有 IP 的 vm haproxy

Data Fusion Private IP ---> Haproxy Private IP ---> CloudSQL Private IP

https://cloud.google.com/data-fusion/docs/how-to/create-private-ip

【讨论】:

    猜你喜欢
    • 2019-12-10
    • 2021-07-16
    • 2021-07-17
    • 2022-01-24
    • 2021-01-28
    • 2019-04-18
    • 2020-06-15
    • 2020-01-21
    • 1970-01-01
    相关资源
    最近更新 更多