简体   繁体   English

云融合到本地 postgresql 数据库连接

[英]Cloud fusion to on-prem postgresql database connection

I'm trying to establish connection to on-premise postgresql database from cloud data fusion.我正在尝试通过云数据融合建立与本地 postgresql 数据库的连接。 But I' not able to resolve Host and port.但我无法解析主机和端口。 Where can I find host and port for postgresql DB, also anything needs to be done for postgresql db to access from data fusion?我在哪里可以找到 postgresql 数据库的主机和端口,postgresql 数据库还需要做些什么才能从数据融合中访问?

I downloaded postgresl JDBC from cloud data fusion hub.我从云数据融合中心下载了 postgresl JDBC。 In Data fusion studio, I selected PostgeSQL a source.在 Data fusion studio 中,我选择了 PostgeSQL 作为源。 While filling details in properties, I'm not sure where to find host/port in postgresql.在属性中填写详细信息时,我不确定在哪里可以找到 postgresql 中的主机/端口。

the answer is more "theoretical" than practical but I will try to resume it as easily as possible.答案比实际更“理论”,但我会尽可能轻松地恢复它。

The first question you need to ask yourself is, is my PostgreSQL instance accessible via a public IP address?您需要问自己的第一个问题是,我的 PostgreSQL 实例是否可以通过公共 IP 地址访问? If so, this is quite easy, all you need is an authorised user, the correct password, and the public IP adress of you instance (and the port you configured).如果是这样,这很容易,您只需要一个授权用户、正确的密码和您实例的公共 IP 地址(以及您配置的端口)。

If your instance is not publically accessible, which is often the case, then the first thing to do is to setup a VPN connection between your on-prem database and the GCP Virtual Private Cloud (VPC) that is peered to your Data Fusion instance (if you setup a private instance which you usually do for security reasons).如果您的实例不可公开访问(通常是这种情况),那么首先要做的是在本地数据库和与数据融合实例对等的 GCP 虚拟私有云 (VPC) 之间设置 VPN 连接(如果您设置一个私有实例,您通常出于安全原因这样做)。 Once this is done, Data Fusion should be able to connect directly to the PostgreSQL source via the exported VPN route / routes from you peered GCP VPC.完成此操作后,Data Fusion 应该能够通过从对等 GCP VPC 导出的 VPN 路由直接连接到 PostgreSQL 源。

I am happy to edit my answer with more detail based on your follow up questions.我很乐意根据您的后续问题更详细地编辑我的答案。

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

相关问题 On-Prem迁移到Azure - Migration of On-Prem to Azure 如何通过私有 IP 将本地服务器连接到 Google Cloud SQL,其中私有 IP 与本地 su.net 冲突? - How to connect on-prem server to Google Cloud SQL over private IP, where private IP conflicts with local subnet? 无法将 Cloud Data Fusion 与 Google Cloud SQL 连接为 PostgreSQL - Can't connect Cloud Data Fusion with Google Cloud SQL for PostgreSQL CloudSQL PostgreSQL 导入查询错误云数据融合 - CloudSQL PostgreSQL Import Query ERROR Cloud Data Fusion 如何使用数据融合将 Cloud PostgreSQL 复制到 BigQuery - How to Replicate Cloud PostgreSQL into BigQuery using Data Fusion 如何将私有 AWS codecommit 存储库克隆到本地服务器? - How to clone private AWS codecommit repo to on-prem server? 无法将公有云 PostgreSQL 实例连接到公有云数据融合实例 - Cannot connect Public Cloud PostgreSQL instance to Public Cloud Data Fusion Instance 将数据从 BQ 移动到本地 SQL 服务器 relationalDB - Move data from BQ to on-prem SQL Server relationalDB 从本地服务器获取 Azure KeyVault 机密 - Get Azure KeyVault secrets from On-Prem Server Gogle Cloud Data Fusion Post GresQL 从关注者数据库中读取 - Gogle Cloud Data Fusion Post GresQL read from follower database
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM