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: 

Is there any way to navigate/access cloud files using the direct abfss URI (no mount) with default python functions/libs like open() or os.listdir()?

Malcoln_Dandaro
New Contributor

Hello,

Today on our workspace we access everything via mount points, we plan to change it to "abfss://" because of security, governance and performance reasons. The problem is sometimes we interact with files using "python only" code, and apparently it does not work with the abfss URI.

Does anyone have any solution to be able to do something like this?

with open('abfss://urlofcloudstorage/container/file.txt') as f:
    data = f.read()

dbutils works with abfss, I would be able to copy from abfss to a tmp folder within dbfs and then read with python, but I have doubts if this is ideal.

Thanks, any input is appreciated.

0 REPLIES 0

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