kenniom.blogg.se

Spark jdbc no suitable driver found
Spark jdbc no suitable driver found








INFO Executor: Adding file:/tmp/mesos/slaves/./mysql-connector-java-5.1.35-bin.jar to class loaderĪ workaround is to add the mysql-connector-java-5.1.35-bin.jar to the same location on each executor node as defined in. In the executor logs I do see before the error: I have tested this on a Mesos cluster with Spark 1.4.0 and the current master branch as of June 18th. The new table is successfully created but it is empty. The user test:secret must have read/write permissions. Edit the Driver Classname from '.SQLServerDriver' to ' .SQLServerDriver'.

spark jdbc no suitable driver found

Open the SQL Server Connection that is used to write to the target.

spark jdbc no suitable driver found

This simple script can repeat the problem.įirst one must create a database called test with a table called table1 and insert some rows in it. Solution The issue can be resolved by changing the Driver Classname used in the Target Connection, as follows: 1. I do not get this error when reading from the same database. I am getting a : No suitable driver found for jdbc:mysql://dbhost/test when using df.write.jdbc.










Spark jdbc no suitable driver found