Github user darabos commented on the issue:
https://github.com/apache/spark/pull/16678
Thanks for the quick pull request!
> @darabos Could you make a manual test and see whether this changes can
resolve your issue?
Unfortunately it does not. I built the code with this command:
```
JAVA_HOME=/usr/lib/jvm/java-8-openjdk-amd64/ \
./dev/make-distribution.sh \
-Phadoop-2.7 -Phive -Phive-thriftserver
```
I ran the commands in the pull request description in the fresh
`spark-shell` and got the same errors. The stack trace reflects your changes
though:
```
scala> spark.read.format("jdbc").option("url",
"jdbc:sqlite:").option("dbtable", "x").load
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:55)
at
org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$$anonfun$2.apply(JdbcUtils.scala:55)
at scala.Option.getOrElse(Option.scala:121)
at
org.apache.spark.sql.execution.datasources.jdbc.JdbcUtils$.createConnectionFactory(JdbcUtils.scala:54)
at
org.apache.spark.sql.execution.datasources.jdbc.JDBCRDD$.resolveTable(JDBCRDD.scala:58)
at
org.apache.spark.sql.execution.datasources.jdbc.JDBCRelation.<init>(JDBCRelation.scala:113)
at
org.apache.spark.sql.execution.datasources.jdbc.JdbcRelationProvider.createRelation(JdbcRelationProvider.scala:47)
at
org.apache.spark.sql.execution.datasources.DataSource.resolveRelation(DataSource.scala:320)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:158)
at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:126)
... 48 elided
scala> spark.read.format("jdbc").option("url",
"jdbc:sqlite:").option("dbtable", "x").load
java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no
such table: x)
```
Have you been unable to reproduce this on your machine? Do you think
something's wrong with my environment?
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]