java.sql.SQLException

No suitable driver


Solutions on the web6149

Solution icon of oraclecommunity
via Oracle Community by 843854, 9 months ago
No suitable driver java.sql.SQLException: 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, 1 month ago
No suitable driver

Solution icon of terracotta
via Terracotta by danielwa, 1 year ago
No suitable driver

Solution icon of coderanch
via Coderanch by Mahima Singh, 7 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by Priety Sharma, 8 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by lee anthony, 8 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by giang nguyen, 8 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by Ramasubramaniam Rathinasubbu, 8 months ago
No suitable driver

Solution icon of coderanch
via Coderanch by Priya Dasu, 8 months 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, 8 months ago
10 times, 1 day ago
24 times, 3 months ago
Samebug visitor profile picture
Unknown user
Once, 1 year ago
12 more bugmates