简体   繁体   English

无法使用 Google Cloud Data Fusion 连接到本地 SQL 服务器

[英]Cannot connect to on-prem SQL Server with Google Cloud Data Fusion

I am trying to test a connection using Cloud Data Fusion to connect to an on-prem SQL Server.我正在尝试使用 Cloud Data Fusion 测试连接以连接到本地 SQL 服务器。 Our GCP Project does not use the default network but rather a custom VPC.我们的 GCP 项目不使用默认网络,而是使用自定义 VPC。

It's important to note that security is very important as this database contains healthcare data.需要注意的是,安全性非常重要,因为该数据库包含医疗保健数据。

We currently have App Engine Flex code that uses pymssql to query the database on this SQL Server through the VPC, and want to test using Data Fusion.我们目前有 App Engine Flex 代码使用 pymssql 通过 VPC 查询这台 SQL 服务器上的数据库,并想使用 Data Fusion 进行测试。

I have copied and added the generated data fusion service account to IAM with role Cloud Data Fusion API Service Agent.我已将生成的数据融合服务帐户复制并添加到 IAM,角色为 Cloud Data Fusion API 服务代理。

I have configured in Data Fusion我已经在 Data Fusion 中进行了配置

system.profile.properties.network = <VPC name> 

I have verified that the username and password for authentication to SQL Server are valid for the database.我已经验证了SQL服务器认证的用户名和密码对数据库有效。

THE VPC network allows port 22 and 1433. VPC 网络允许端口 22 和 1433。

At this point I am just trying to get a successful connection to query a table in the database.在这一点上,我只是想获得一个成功的连接来查询数据库中的一个表。

Here is the error message I get:这是我收到的错误消息:

Connect timed out.连接超时。 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.确保 SQL 服务器的实例正在主机上运行并在端口接受 TCP/IP 连接。 Make sure that TCP connections to the port are not blocked by a firewall.确保 TCP 与端口的连接未被防火墙阻止。

Thoughts?想法?

It looks like you can access SQL Server from GCP (via AppEngine Flex Py code) but having trouble connecting through Data Fusion.看起来您可以从 GCP(通过 AppEngine Flex Py 代码)访问 SQL 服务器,但无法通过 Data Fusion 连接。 It also looks like authentication doesnt seem to be a problem (as the error message is around connection).看起来身份验证似乎不是问题(因为错误消息与连接有关)。

One area I can think of is to try Cloud Data Fusion private IP, that allows you to securely connect to your VPC from Cloud Data Fusion.我能想到的一个领域是尝试 Cloud Data Fusion 私有 IP,它允许您从 Cloud Data Fusion 安全地连接到您的 VPC。 This is a new feature and you will need Data Fusion product team support to leverage this feature.这是一项新功能,您需要数据融合产品团队支持才能利用此功能。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法将 Cloud Data Fusion 与 Google Cloud SQL 连接为 PostgreSQL - Can't connect Cloud Data Fusion with Google Cloud SQL for PostgreSQL 如何将 Data Fusion 连接到云 SQL 代理 - How to connect Data Fusion to Cloud SQL Proxy 无法从 Data Fusion 连接 Cloud SQL PostgreSQL - Could not connect Cloud SQL PostgreSQL from Data Fusion 无法从 Data Fusion 连接 Cloud SQL mySql/postgreSQL 实例 - Unable to connect Cloud SQL mySql / postgreSQL instance from Data Fusion 私有云数据融合可以连接到互联网吗? - Can a private Cloud data fusion connect to the internet? 使用 Google Cloud Data Fusion 执行自定义 SQL 查询 - Perform custom SQL query with Google Cloud Data Fusion 无法从 Data Fusion 连接云 SQL mySql 实例。 异常“无法创建套接字工厂 'com.google.cloud.sql.mysql.SocketFactory” - Unable to connect Cloud SQL mySql instance from Data Fusion. Exception “Could not create socket factory 'com.google.cloud.sql.mysql.SocketFactory” 使用云数据融合创建从 SQL Server 到 BigQuery 的数据管道的问题 - Problem with creating a data pipeline from SQL Server to BigQuery using cloud data fusion 无法将公有云 PostgreSQL 实例连接到公有云数据融合实例 - Cannot connect Public Cloud PostgreSQL instance to Public Cloud Data Fusion Instance 如何在 Cloud Data Fusion 中将牧马人连接添加到云 sql postgres - How to add wrangler connection to cloud sql postgres in Cloud Data Fusion
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM