Problems connecting Data Fusion with Cloud SQL PostgreSQL - postgresql

I have been trying to connect the my Data Fusion instance with my Cloud SQL PostgreSQL server. I have ensured that both of them are in the same VPC and I am using the Socket-factory library 1.2. What should I do? I am new in Data Fusion.
Edit:
I forgot to mention the error. I am trying to connect through wrangler using the Database option and using the connection string:
jdbc:postgresql://google/DATABASE_NAME?cloudSqlInstance=INSTANCE_CONNECTION_NAME&socketFactory=com.google.cloud.sql.postgres.SocketFactory&useSSL=false
The error I receive is 403 Forbidden. I have given Cloud SQL client permissions to both the service account and Dataproc account. I am using the latest Data Fusion version 6.6.0.

Related

Azure Synapse analytics connectivity with Tableau

I have created server less synapse analytics with database and table in it.
I have tried using the SQL query to view data within synapse analytics and can view it as expected but when I try to connect Tableau desktop version 2020.2.9 (as the connector is only available in version 2020.2 and above) with connector provide in tableau the connection establish successfully as I can see the list of database and tables in it but when I try to click on the table to view data below issue pop-up.
An error occurred while communicating with Azure Synapse Analytics
Unable to connect to the server. Check that the server is running and that you have access privileges to the requested database.
Error Code: 2F0F5E42
[Microsoft][ODBC SQL Server Driver][SQL Server]External table 'dbo' is not accessible because location does not exist or it is used by another process.
The table "[dbo].[Diagnosis]" does not exist.
You will have to check what type of server less synapse you are using whether a standard dedicated cluster or an On-Demand cluster. Further, you can reach to Tableau support team to check with the connectivity based on your cluster type.

Local Postgres database to Google Cloud PostgreSQL Github

I would like to build a Google Cloud PostgreSQL database using the instructions here
I was able to successfully create the Postgres databases with appropriate tables and views locally.
What do I need to do in order to get the data on Google Cloud PostgreSQL? My goal is to have remote access to this data.
You have 2 options, The first one is use the Cloud SQL proxy as is described here. As the shared links say, the Cloud SQL Proxy provides secure access to your instances without the need for Authorized networks or for configuring SSL.
On the other hand, the second option is only to configure access to your instance under Authorized networks using or not SSL. The complete steps are listed here
You could connect to Cloud SQL from a local test environment using cloud sql proxy. See quickstart-proxy-test.
The workflow is:
Your Application(Running Locally) => cloud sql proxy (Running locally) => GCP remote Cloud SQL service

Unable to connect: We could not register this data source for all gateway instances within this cluster.

I have developed some reports using power bi desktop which is using IBM DB2 as datasource. I have installed On-premises data gateway in my power bi system and configured. I have to create ibm db2 datasource connection in power bi web to make live connection with my IBM DB2 database. When i tried to create datasource connection it showing me unable to connect error message.I have given correct credentials but still it showing the same error. Am i missing anything? any special permissions needed to provide from IBM DB2 database admin side? Please help me to solve this issue.
Thanks in advance,
Kannas
I had an identical error. The issue appears to be related to the credentials given in the data source settings when configuring in the online service. In my case I had not entered the domain with the username.

"Connection URL uses an unsupported JDBC protocol." Trying to insert data via JDBC into Postgres from Google SQL

Signed up for a Google Cloud SQL Account in order to store Adwords data via an adwords script into Postgres with JDBC.
I know that on SO there are two questions that asked basically what I'm asking:
Automate Google Spreadsheet data load from external database
Not able to connect Postgress database in Google app script
But because of https://cloud.google.com/sql/docs/postgres/faq (last question at the bottom) I'm asking this again since this might be related to the beta status of Postgres in Google Cloud SQL.
Getting the error message from title "Connection URL uses an unsupported JDBC protocol." which I identified via logger.log for the following line of code:
Jdbc.getConnection(dbUrl, user, userPwd); with dbUrl being of the following string format:
jdbc:postgresql://myip/mydbname
Am I missing something or can someone confirm that this is not supported?

How to connect Google Data Studio to Google Cloud SQL

I have a Google Cloud SQL database that I can connect to with my SQL client. However, I have not been able to connect Google Data Studio to the Google Cloud SQL database with the Cloud SQL data source. I have the IP address and credentials from Google Cloud SQL.
My guess is that Google Data Studio cannot connect to Google Cloud SQL because I need to add an IP address to allow the traffic into Google Cloud SQL but Google Data Studio does not have or does not publicize an IP range.
Has anyone had success connecting to Google Cloud SQL using the Cloud SQL data source in Google Data Studio?
The following ranges need to be whitelisted for Data Studio to work:
https://developers.google.com/apps-script/guides/jdbc
Since August 2017, Google Data Studio connects natively to Google Cloud SQL databases:
The current version of the connector no longer requires whitelisting,
and it provides encryption; however, to use these features, you must
create a new data source using the Google Cloud SQL connector.
See Google Cloud SQL connector in help for detailed description on how to create a connector.