Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
05-25-2023 03:21 AM
have you included the JDBC driver for your particular database on the spark classpath?
example for postgres:
./bin/spark-shell --driver-class-path postgresql-9.4.1207.jar --jars postgresql-9.4.1207.jar
https://spark.apache.org/docs/latest/sql-data-sources-jdbc.html
PS. I just noticed you want to read from Databricks SQL, not some kind of database.
Can you try with using another JDBC URL (2.6.22 or earlier)?
Also not sure if the driver you use is the correct one. Local I use com.simba.spark.jdbc.Driver
Or download the JDBC driver and add it to the spark classpath.