-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while connecting to Databases in DataBrick Community Edition on Cloud #60
Comments
Hi,
i think path should be
*/dbfs/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db*
Thanks & Regards,
Hitesh Tiwari
…On Wed, Aug 19, 2020 at 8:43 PM joshipm ***@***.***> wrote:
Hi,
I have downloaded repository and I was able to execute and practice all
example . But when I am trying to execute examples related to SQL data
source from Chapter 9 Data Source I am getting following error. I don't
have any clue on what to do so please guide me. Thanks in advance.
Error"Java.sql.SQLException: path to
'/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db':
'/databricks-datasets' does not exist"
Path do exists when I run %fs ls and I get following
dbfs:/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db
Following are parameters
driver = "org.sqlite.JDBC" path =
"/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db"
url = "jdbc:sqlite:" + path tablename = "flight_info"
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#60>, or
unsubscribe
<https://github.com/notifications/unsubscribe-auth/ACV2AHNVDLOUDIEV4FHS7ETSBQMNRANCNFSM4QFHW4HQ>
.
|
<!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
font-size:11.0pt;
font-family:"Calibri",sans-serif;}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
-->Hi , Just tried doesn’t work. I assume you want to include that in double quotes. RegardsPrasad Sent from Mail for Windows 10 From: hiteshtiwariSent: Wednesday, August 19, 2020 4:42 PMTo: databricks/Spark-The-Definitive-GuideCc: joshipm; AuthorSubject: Re: [databricks/Spark-The-Definitive-Guide] Error while connecting to Databases in DataBrick Community Edition on Cloud (#60) Hi,i think path should be*/dbfs/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db*Thanks & Regards,Hitesh TiwariOn Wed, Aug 19, 2020 at 8:43 PM joshipm <[email protected]> wrote:> Hi,> I have downloaded repository and I was able to execute and practice all> example . But when I am trying to execute examples related to SQL data> source from Chapter 9 Data Source I am getting following error. I don't> have any clue on what to do so please guide me. Thanks in advance.> Error"Java.sql.SQLException: path to> '/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db':> '/databricks-datasets' does not exist">> Path do exists when I run %fs ls and I get following>>> dbfs:/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db>> Following are parameters>> driver = "org.sqlite.JDBC" path => "/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db"> url = "jdbc:sqlite:" + path tablename = "flight_info">> —> You are receiving this because you are subscribed to this thread.> Reply to this email directly, view it on GitHub> <#60>, or> unsubscribe> <https://github.com/notifications/unsubscribe-auth/ACV2AHNVDLOUDIEV4FHS7ETSBQMNRANCNFSM4QFHW4HQ>> .>—You are receiving this because you authored the thread.Reply to this email directly, view it on GitHub, or unsubscribe.
|
did this work for you? i tried all options and it it is failing. driver = "org.sqlite.JDBC" dbDataFrame = spark.read.format("jdbc").option("url", url).option("dbtable", tablename).option("driver", driver).load() Py4JJavaError: An error occurred while calling o570.load. |
i even tried with below driver = "org.sqlite.JDBC" dbDataFrame = spark.read.format("jdbc").option("url", url).option("dbtable", tablename).option("driver", driver).load() but similar error. Py4JJavaError: An error occurred while calling o589.load. |
Hi,
I have downloaded repository and I was able to execute and practice all example . But when I am trying to execute examples related to SQL data source from Chapter 9 Data Source I am getting following error. I don't have any clue on what to do so please guide me. Thanks in advance.
Error"Java.sql.SQLException: path to '/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db': '/databricks-datasets' does not exist"
Path do exists when I run %fs ls and I get following
dbfs:/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db
Following are parameters
driver = "org.sqlite.JDBC" path = "/databricks-datasets/definitive-guide/data/flight-data/jdbc/my-sqlite.db" url = "jdbc:sqlite:" + path tablename = "flight_info"
The text was updated successfully, but these errors were encountered: