cancel
Showing results for 
Search instead for 
Did you mean: 
Data Engineering
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
Welcome to Databricks Community: Lets learn, network and celebrate together

Join our fast-growing data practitioner and expert community of 80K+ members, ready to discover, help and collaborate together while making meaningful connections. 

Click here to register and join today! 

Engage in exciting technical discussions, join a group with your peers and meet our Featured Members.