Skip to content
This repository has been archived by the owner on Jul 2, 2022. It is now read-only.

Getting Path error #12

Closed
fasalzaman opened this issue Dec 19, 2018 · 2 comments
Closed

Getting Path error #12

fasalzaman opened this issue Dec 19, 2018 · 2 comments
Assignees

Comments

@fasalzaman
Copy link

fasalzaman commented Dec 19, 2018

While running the following command on Databriks (Exercise 4 > Task 4 > Step 17) I am getting a path error.

#Create a Dataframe containing data from all the files in blob storage, regardless of the folder they are located within.
df = spark.read.options(header='true', inferSchema='true').csv("dbfs:/mnt/smartmeters/*/*/*.csv",header=True)
print(df.dtypes)

I am getting an error that the path "dbfs:/mnt/smartmeters///*.csv" is not correct.

Instead of that, I tried the following command and it solved the error.

#Create a Dataframe containing data from all the files in blob storage, regardless of the folder they are located within.
df = spark.read.options(header='true', inferSchema='true').csv("dbfs:/mnt/smartmeters/*/*/*/*/*.csv",header=True)
print(df.dtypes)
@DawnmarieDesJardins
Copy link
Contributor

@joelhulen
Hi Joel,
Can you please take at this for us?
Dawnmarie

@joelhulen
Copy link
Contributor

I was not able to reproduce this error, but I've added a note in the lab to change the path if users encounter the same error.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants