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)
- UserWarning: Failed to fetch container properties for CONTAINER_NAME. Assume it exists already HOT 1
- "sdk_moniker" key error HOT 9
- Avoid private APIs from azure.storage HOT 2
- InternalServerError while writing large json data.
- await file_obj.credential.close() : TypeError: object NoneType can't be used in 'await' expression HOT 4
- update readme HOT 1
- Support py3.12
- `find` doesn't accept `maxdepth` parameter HOT 1
- Add use_emulator setting to better align with object_store crate HOT 1
- Current state of the library, milestones and current development HOT 1
- 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
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.