I try to run a script from Google CPB100 - Lab3b (train_and_apply.py) with dataproc against SLQ (mysql ddbb) but I get a timeout.
Caused by: java.net.ConnectException: Connection timed out (Connection timed out)
From the dataproc master I can connect with the mysql command line, but no with the python commands from the script. What can I do to diagnostic this issue?
Success
$> mysql --host=35.194.7.XXX --user=root --password
Timeout
$> pyspark
%> jdbcDriver='com.mysql.jdbc.Driver'
%> jdbcUrl='jdbc:mysql://35.194.7.XXX:3306/recommendation_spark?user=root&password=XXXX'
%> dfRates = sqlContext.read.format('jdbc').options(driver=jdbcDriver, url=jdbcUrl, dbtable='Rating').load()