Azure / Azure/azure-data-lake-store-python
lib.DataLakeCredential doesn't work after the latest release 1.0.1
- Lingua principale
- Python
- Stelle
- 76
- Fork
- 79
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
I have been using Managed Identity in the ADLS client, and it worked well until the release of version 1.0.1 on June 3.
Got error message:
```
adlsCredential = lib.DataLakeCredential(
AttributeError: module 'azure.datalake.store.lib' has no attribute 'DataLakeCredential'
```
The function I'm using to create ADLS client:
```python
def get_adls_gen1_client(tenant_id: str, client_id: str, store_name: str):
resource = "https://datalake.azure.net/.default"
scopes = [resource]
credential = DefaultAzureCredential(exclude_interactive_browser_credential=False)
token = credential.get_token(resource)
adlsCredential = lib.DataLakeCredential(
{
"access_token": token.token,
"access": token.token,
"expires_in": token.expires_on,
"token_type": "Bearer",
"resource": resource,
"scopes": scopes,
"refresh": False,
"time": time.time(),
"tenant": tenant_id,
"client_id": client_id,
"scopes": scopes,
}
)
return core.AzureDLFileSystem(token=adlsCredential, store_name=store_name)
```
Guida per i contributori
Apri la guida per i contributori
Direzione di ricerca
Inizia ispezionando gli entry point lib.DataLakeCredential e core.AzureDLFileSystem, quindi confronta il loro comportamento con quello della release 1.0.1 e della release precedente. Riproduci la costruzione del client Managed Identity mostrata nell’issue; il lavoro è completato quando la credential è disponibile e il client ADLS può essere creato senza l’AttributeError.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- azure, python
- Ambito
- cloud, data-engineering
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 35/100