Comments (2)
from adlfs.
Does a CertificateCredential work with azure.storage.blob.ContainerClient?
No, as far as I can see, the ContainerClient can only be created using an "AzureNamedKeyCredential", "AzureSasCredential" or "TokenCredential".
But I actually already found a solution to read partitioned parquet with a CertificateCredential, using azure.storage.filedatalake.DataLakeServiceClient and another library called 'pyarrowfs_adlgen2' from Robin Kåveland.
What I think is interesting here, is that the constructor of the DataLakeServiceClient class also does not mention the usage of an CertificateCredential explicitly - just the three Credential options, I also mentioned above.
So the CertificateCredential might also work somehow with the adlfs lib, but since I have a working solution now, I probaly won't test this.
However, in case anyone else is facing the same issue, here the code I used:
from azure.storage.filedatalake import DataLakeServiceClient
from azure.identity import CertificateCredential
import pyarrowfs_adlgen2
import pyarrow
import pandas
credential = CertificateCredential(tenant_id, client_id, certificate_data=certificate)
datalake_service_client= DataLakeServiceClient(account_url=account_url, credential=credential)
handler = pyarrowfs_adlgen2.AccountHandler(datalake_service=datalake_service_client)
filesystem = pyarrow.fs.PyFileSystem(handler)
df = pandas.read_parquet(path=path, filesystem=filesystem)
@TomAugspurger feel free to close this issue, if no further action required from your side.
from adlfs.
Related Issues (20)
- Concurrent download of multiple files HOT 1
- Support virtual directory stubs with uppercase "Hdi_isfolder" metadata HOT 1
- Feature Suggestion: Optional content type when for writing file HOT 2
- Support passing url in AzureBlobFileSystem HOT 1
- Add comment why `aiohttp` is required
- Fix typo in repo About
- Python 3.12 support blocked by aiohttp HOT 1
- Feature Request: Support for Adding Metadata to Blobs
- Runtime warning from missing await HOT 2
- `fs.info()` and `fs.ls(detail=True)` return different etag formats
- Issue with parallel uploads to the same blob
- Can I use a bearer token / entra ID token for authentication? HOT 1
- Parameter anon ignored if set to False
- exists() is missing **kwargs
- object NoneType can't be used in 'await' expression HOT 3
- Does adlfs provide a way to set the content-type when writing a file to azure blob storage? HOT 1
- Does adlfs provide a way to get a file's public cloud url?
- Xarray Serialisation Issues reading NetCDF from AzureBlobFile HOT 3
- Support "chain" in the same way as duckdb
- Large file upload issue to azure storage account.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from adlfs.