jar包下载:
https://bitbucket.org/xerial/sqlite-jdbc/downloads/sqlite-jdbc-3.8.6.jar
下载完放到,D:\spark\jars目录下
例子:
df = sqlcontext.read.format('jdbc').options(url='jdbc:sqlite:C:/Users/Desktop/dbname.db', dbtable='tablename', driver='org.sqlite.JDBC' ).load()