cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results for 
Search instead for 
Did you mean: 

Can´t read a simple .CSV from a blob

ferbystudy
New Contributor III

Guys, I am using "Databricks Community" to study. I put some files in a Blob, granted all access but I have no ideia why DB is not reading. Please see the code below and thanks for helping!

csf 

thanks!

1 ACCEPTED SOLUTION

Accepted Solutions

ferbystudy
New Contributor III

Guys, i found the problem! ****, databricks! Hhahaha

First i went to datalake and set all access to public/grant all user owner access..

I already mounted before.. So after this changes you will need to

Unmount and then Mount again!

 Yeah, after that it let me read the CSV! Hope it helps someone one day! hahaha

UNMOUNT:

dbutils.fs.unmount("/mnt/formula1d4t4lake/raw")

MOUNT:

container_name = "raw"

dbutils.fs.mount(

 source = f"abfss://{container_name}@{storage_account_name}.dfs.core.windows.net",

 mount_point = f"/mnt/{storage_account_name}/{container_name}",

 extra_configs = configs)

View solution in original post

3 REPLIES 3

Pat
Honored Contributor III

Hi @Fernando Rezende​ ,

can you please expand the whole error? It might be easier to find out why.

thanks,

Pat.

ferbystudy
New Contributor III

Sure, thanks for helping!

erro2

ferbystudy
New Contributor III

Guys, i found the problem! ****, databricks! Hhahaha

First i went to datalake and set all access to public/grant all user owner access..

I already mounted before.. So after this changes you will need to

Unmount and then Mount again!

 Yeah, after that it let me read the CSV! Hope it helps someone one day! hahaha

UNMOUNT:

dbutils.fs.unmount("/mnt/formula1d4t4lake/raw")

MOUNT:

container_name = "raw"

dbutils.fs.mount(

 source = f"abfss://{container_name}@{storage_account_name}.dfs.core.windows.net",

 mount_point = f"/mnt/{storage_account_name}/{container_name}",

 extra_configs = configs)

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.

If there isn’t a group near you, start one and help create a community that brings people together.

Request a New Group