[英]How to add wrangler connection to cloud sql postgres in Cloud Data Fusion
I am not able to see the option to add connection to "Cloud Sql Postgres" under wrangler -> databases .我无法在wrangler -> databases下看到添加与“Cloud Sql Postgres”连接的选项。 I can only see these options avaialable-connection-options我只能看到这些选项avaialable-connection-options
If i select the postgressql and add the details i get the Error: SocketTimeoutException: connect timed out
如果我 select postgressql 并添加详细信息我得到Error: SocketTimeoutException: connect timed out
My connection to this instance works from the studio using the source/sink CloudSQL PostgreSQL我使用源/接收器CloudSQL PostgreSQL从工作室连接到此实例
Any help to make the connection work from the wrangler please?请问牧马人有什么帮助可以使连接工作吗?
I have resolved this issue by selecting the option Database
and adding the connection like jdbc:postgresql://google/<DATABASE_NAME>?cloudSqlInstance=<INSTANCE_CONNECTION_NAME>&socketFactory=com.google.cloud.sql.postgres.SocketFactory
. I have resolved this issue by selecting the option Database
and adding the connection like jdbc:postgresql://google/<DATABASE_NAME>?cloudSqlInstance=<INSTANCE_CONNECTION_NAME>&socketFactory=com.google.cloud.sql.postgres.SocketFactory
.
Please note that the INSTANCE_CONNECTION_NAME
should be in the format <project>:<region>:<instance_name>
.请注意, INSTANCE_CONNECTION_NAME
的格式应为<project>:<region>:<instance_name>
。 Copy the exact connection name displayed on the GCP consoles cloud sql page.复制 GCP 控制台云 sql 页面上显示的确切连接名称。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.