I am trying to connect to google cloud sql from a job running on google cloud dataproc. I have not authorized access to the cloud sql instance from external network. since my dataproc cluster is in the same project as cloud sql, I am expecting it to allow the connection.
I have followed the docs for connecting to cloud sql (https://cloud.google.com/appengine/docs/standard/java/cloud-sql/) . But this doc is for connecting from GAE to cloud sql. Nevertheless I tried the steps. But it seems like com.mysql.jdbc.GoogleDriver is not available in the data proc environment. Hence I get ClassNotFoundException for this class.
Where can I get this package. I will include it in the uber jar and try to run in dataproc cluster.
mysql-connector-javaandmysql-socket-factoryin your pom as described in the linked doc? - Axel Magnusonmysql-connector-javabecause it says in doc that it is only used locally. - Golak Sarangi