Forum Discussion

prathijp's avatar
prathijp
Helper I
10 months ago
Solved

How to read/write lakehouse files from Linux/python solution?

What are the best option for reading/writing files from/to lalehouse folders from othe VMs/linux boxes/python solutions?

What is the lease permission I can grant for app developers?

  • Hi prathijp ,

     

    To read or write files from Lakehouse folders using Linux or Python, the best options are:

     

    1. OneLake REST API - You can use Python (requests or httpx) to interact with OneLake endpoints for uploading, downloading, or listing files.

     

    2. ABFS Paths - Lakehouse files are accessible via Azure Blob File System (ABFS). You can use Azure CLI or Python SDK (azure-storage-file-datalake) to connect and manage files from Linux environments.

     

    3. Mounting via ADLS

     

    Gen2-compatible tools - If your VM supports it, you can mount OneLake as a filesystem ateract with it like local storage(only on windows).

     

    Thanks,

    Sai Teja 

4 Replies

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi prathijp ,

    Thank you ibarrau  for your input.

    We’d like to follow up regarding the recent concern. Kindly confirm whether the issue has been resolved, or if further assistance is still required. We are available to support you and are committed to helping you reach a resolution.

    Best Regards,
    Chaithra E.

  • Hi prathijp ,

     

    To read or write files from Lakehouse folders using Linux or Python, the best options are:

     

    1. OneLake REST API - You can use Python (requests or httpx) to interact with OneLake endpoints for uploading, downloading, or listing files.

     

    2. ABFS Paths - Lakehouse files are accessible via Azure Blob File System (ABFS). You can use Azure CLI or Python SDK (azure-storage-file-datalake) to connect and manage files from Linux environments.

     

    3. Mounting via ADLS

     

    Gen2-compatible tools - If your VM supports it, you can mount OneLake as a filesystem ateract with it like local storage(only on windows).

     

    Thanks,

    Sai Teja 

  • v-echaithra's avatar
    v-echaithra
    Community Support

    Hi prathijp ,

    Thank you SaiTejaTalasila for your inputs.

    May I ask if you have resolved this issue? Please let us know if you have any further issues, we are happy to help.

    Thank you.