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
Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!