Forum Discussion
How to read/write lakehouse files from Linux/python solution?
- 9 months ago
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
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