java.sql.SQLException: No suitable driver


Solutions on the web260

Solution icon of stackoverflow
No suitable driver

Solution icon of oraclecommunity
via Oracle Community by GRK, 1 year ago
No suitable driver java.sql.SQLException: No suitable driver

Solution icon of terracotta
via Terracotta by joe12, 3 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by srinivas srini, 10 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by Priya Dasu, 10 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by Jim Cross, 10 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by Ankur Sharma, 10 months ago
No suitable driver

Solution icon of github
No suitable driver

Solution icon of googlegroups
via Google Groups by bre...@gmail.com, 1 year ago
No suitable driver

Solution icon of googlegroups
via Google Groups by Vance Christiaanse, 1 year ago
No suitable driver

Stack trace

java.sql.SQLException: No suitable driver
	at java.sql.DriverManager.getDriver(DriverManager.java:315)
	at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$2.apply(JdbcUtils.scala:54)
	at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$2.apply(JdbcUtils.scala:54)
	at scala.Option.getOrElse(Option.scala:121)
	at org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$.createConnectionFactory(JdbcUtils.scala:53)
	at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:123)
	at org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.<init>(JDBCRelation.scala:117)
	at org.apache.spark.sql.DataFrameReader.jdbc(DataFrameReader.scala:237)
	at org.apache.spark.sql.DataFrameReader.jdbc(DataFrameReader.scala:159)
	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.lang.reflect.Method.invoke(Method.java:498)
	at py4j.reflection.MethodInvoker.invoke(MethodInvoker.java:237)
	at py4j.reflection.ReflectionEngine.invoke(ReflectionEngine.java:357)
	at py4j.Gateway.invoke(Gateway.java:280)
	at py4j.commands.AbstractCommand.invokeMethod(AbstractCommand.java:128)
	at py4j.commands.CallCommand.execute(CallCommand.java:79)
	at py4j.GatewayConnection.run(GatewayConnection.java:211)
	at java.lang.Thread.run(Thread.java:745)

Write tip

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

Users with the same issue

Samebug visitor profile picture
Unknown user
Once, 1 year ago
Samebug visitor profile picture
Unknown user
Once, 10 months ago
10 times, 2 months ago
24 times, 5 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
12 more bugmates