подскажите что лучше с таким сделать ?
2021-03-24 23:40:26.432 INFO 121606 --- [ for task 27315] org.apache.spark.executor.Executor : Running task 0.0 in stage 27315.0 (TID 27315)
2021-03-25 01:53:23.249 INFO 121606 --- [ for task 27315] o.a.s.s.e.datasources.jdbc.JDBCRDD : closed connection
2021-03-25 01:53:23.250 ERROR 121606 --- [ for task 27315] org.apache.spark.executor.Executor : Exception in task 0.0 in stage 27315.0 (TID 27315)
com.mysql.cj.jdbc.exceptions.CommunicationsException: The last packet successfully received from the server was 7,976,615 milliseconds ago. The last packet sent successfully to the server was 7,976,615 milliseconds ago. is longer than the server configured value of 'wait_timeout'. You should consider either expiring and/or testing connection validity before use in your application, increasing the server configured values for client timeouts, or using the Connector/J connection property 'autoReconnect=true' to avoid this problem.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(
SQLError.java:174) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(
SQLExceptionsMapping.java:64) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(
ClientPreparedStatement.java:953) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(
ClientPreparedStatement.java:1003) ~[mysql-connector-java-8.0.21.jar!/:8.0.21]
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD.compute(JDBCRDD.scala:304) ~[spark-sql_2.12-2.4.7.jar!/:2.4.7]