Need to create a pipeline to export data from local PostgreSQL DB to Google Cloud SQL using Google Cloud DataFusion. Using wrangler to first test the connections with local DB and CloudSQL.
- While trying to establish a connection with local DB, I am getting connection failed exception. Hostname, port, username and password are correct.
- For establishing connection with Google Cloud SQL (PostgreSQL), I used this reference to build the JAR but got SocketFactory instantiation error.
Steps followed for both:
- In Wrangler UI, click add connection
- Click databases
- Then add the respective jar (JDBC driver)
- Add connection details
Kindly help with how to resolve these issues.