java.sql.SQLException: No suitable driver

Stack Overflow | solarenqu | 5 months ago
  1. Speed up your debug routine!

    Automated exception search integrated into your IDE

  2. 0

    Write spark dataframe to postgres Database

    Stack Overflow | 4 months ago | Yiliang
    java.sql.SQLException: No suitable driver

  1. silex 1 times, last 7 months ago
14 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.sql.SQLException

    No suitable driver

    at java.sql.DriverManager.getDriver()
  2. Java RT
    DriverManager.getDriver
    1. java.sql.DriverManager.getDriver(DriverManager.java:315)
    1 frame
  3. org.apache.spark
    JdbcUtils$$anonfun$2.apply
    1. org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$2.apply(JdbcUtils.scala:50)
    2. org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$2.apply(JdbcUtils.scala:50)
    2 frames
  4. Scala
    Option.getOrElse
    1. scala.Option.getOrElse(Option.scala:120)
    1 frame
  5. org.apache.spark
    JDBCRelation.<init>
    1. org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$.createConnectionFactory(JdbcUtils.scala:49)
    2. org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:120)
    3. org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.<init>(JDBCRelation.scala:91)
    3 frames
  6. Spark Project SQL
    DataFrameReader.jdbc
    1. org.apache.spark.sql.DataFrameReader.jdbc(DataFrameReader.scala:222)
    2. org.apache.spark.sql.DataFrameReader.jdbc(DataFrameReader.scala:146)
    2 frames
  7. example.dataframe
    ScalaDataFrameExample.main
    1. example.dataframe.ScalaDataFrameExample$.main(ScalaDataFrameExample.scala:30)
    2. example.dataframe.ScalaDataFrameExample.main(ScalaDataFrameExample.scala)
    2 frames
  8. Java RT
    Method.invoke
    1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    4. java.lang.reflect.Method.invoke(Method.java:497)
    4 frames
  9. Spark
    SparkSubmit.main
    1. org.apache.spark.deploy.SparkSubmit$.org$apache$spark$deploy$SparkSubmit$$runMain(SparkSubmit.scala:731)
    2. org.apache.spark.deploy.SparkSubmit$.doRunMain$1(SparkSubmit.scala:181)
    3. org.apache.spark.deploy.SparkSubmit$.submit(SparkSubmit.scala:206)
    4. org.apache.spark.deploy.SparkSubmit$.main(SparkSubmit.scala:121)
    5. org.apache.spark.deploy.SparkSubmit.main(SparkSubmit.scala)
    5 frames