Comments (4)
try with /dbfs/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db"
from spark-the-definitive-guide.
Thanks it worked
from spark-the-definitive-guide.
how did you fix this? i am getting same error even after making above suggestion.
driver = "org.sqlite.JDBC"
path = "/dbfs/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db"
url = "jdbc:sqlite:" + path
tablename = "flight_info"
dbDataFrame = spark.read.format("jdbc").option("url", url).option("dbtable", tablename).option("driver", driver).load()
Py4JJavaError: An error occurred while calling o608.load.
: java.sql.SQLException: path to '/dbfs/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db': '/dbfs/databricks-datasets' does not exist
at org.sqlite.core.CoreConnection.open(CoreConnection.java:192)
at org.sqlite.core.CoreConnection.(CoreConnection.java:76)
at org.sqlite.jdbc3.JDBC3Connection.(JDBC3Connection.java:24)
at org.sqlite.jdbc4.JDBC4Connection.(JDBC4Connection.java:23)
at org.sqlite.SQLiteConnection.(SQLiteConnection.java:45)
at org.sqlite.JDBC.createConnection(JDBC.java:114)
at org.sqlite.JDBC.connect(JDBC.java:88)
from spark-the-definitive-guide.
Also getting same error after trying the correction
from spark-the-definitive-guide.
Related Issues (20)
- Chapter 13 - Advanced RDD example of Custom partitioner may need correction HOT 1
- Spark SQL Help HOT 4
- not a member of org.apache.spark.sql.SparkSession HOT 7
- Chapter 3: java.lang.IllegalStateException: Cannot call methods on a stopped SparkContext. HOT 1
- Code issue chapter2
- Code in Chapter 22 - Windows on Event Time
- Chapter 9: java.lang.ClassNotFoundException: org.sqllite.JDBC HOT 2
- Translation of the book,"Spark-The-Definitive-Guide", from English into Chinese
- Error while connecting to Databases in DataBrick Community Edition on Cloud HOT 4
- staticSchema error in chapter 3 in s HOT 1
- Chapter 6 - Working with JSON
- Chapter 7 - A small correction to sql code in sumDistinct
- Chapter 7 - A small correction in sql code in group query
- Not applicable - opened by mistake
- Ch9 - Writing to SQL database - SQLException: [SQLITE_ERROR] SQL error or missing database (no such table: flight_info) HOT 1
- ch10 - sparksql- Inserting into tables query not working Cannot safely cast 'count': string to bigint
- Chapter 9: DataSources - Partitioning based on a sliding window section - python
- Multi-line chain of Dataframe transformations needs to be enclosed in parenthesis
- ImportError: cannot import name '_centered' from 'scipy.signal.signaltools'
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from spark-the-definitive-guide.