我正在GKE上的Kubernetes上部署一个批处理spark作业。Job试图从MySQL (Google Cloud SQL)获取一些数据,但它给出了连接链接故障。我尝试通过从pod安装mysql客户端来手动连接到mysql,连接正常。我还需要配置什么吗?例外:
Exception in thread "main" com.mysql.cj.jdbc.exceptions.CommunicationsException: Communication
我有两个大型数据集。第一个数据集包含大约1.3亿个条目。val df1 = (spark.read.jdbc(jdbcURL,configurationLoader.mysql_table1,"id",100,100000,40, MySqlConnection.getConnectionProperties))
val df2 = (s