I am trying to connect to a database with pyspark and I am using the following code:
sqlctx = SQLContext(sc) df = sqlctx.load( url = "jdbc:postgresql
This exception means jdbc driver does not in driver classpath. you can spark-submit jdbc jars with --jar parameter, also add it into driver classpath using spark.driver.extraClassPath.
--jar
spark.driver.extraClassPath