java.sql.SQLException: No suitable driver found for jdbc:postgresql://host:port/compose

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Ross Lewis
, 1 year ago
via Google Groups by Nashe Chiu, 1 year ago
No suitable driver found for jdbc:postgresql://mypostgres:5432/databsename?user=username&password=password
via Stack Overflow by David
, 2 years ago
No suitable driver found for jdbc:mysql://localhost:3306
via by Unknown author, 1 year ago
via by Unknown author, 2 years ago
No suitable driver found for jdbc:phoenix:ana-poc-01
via Stack Overflow by kpc72
, 2 years ago
No suitable driver found for
java.sql.SQLException: No suitable driver found for jdbc:postgresql://host:port/compose
at java.sql.DriverManager.getConnection(
at java.sql.DriverManager.getConnection(
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$$anonfun$getConnector$1.apply(JDBCRDD.scala:188)
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$$anonfun$getConnector$1.apply(JDBCRDD.scala:181)
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:121)
at org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.(JDBCRelation.scala:91)
at org.apache.spark.sql.execution.datasources.jdbc.DefaultSource.createRelation(DefaultSource.scala:60)
at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:158)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:119)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at py4j.reflection.MethodInvoker.invoke(
at py4j.reflection.ReflectionEngine.invoke(
at py4j.Gateway.invoke(
at py4j.commands.AbstractCommand.invokeMethod(
at py4j.commands.CallCommand.execute(

Users with the same issue

3 times, 1 month ago
10 times, 3 months ago
Once, 5 months ago
Once, 7 months ago
2 times, 7 months ago

Write tip

Know the solutions? Share your knowledge to help other developers to debug faster.