Armcollector
9/26/2018 - 7:43 PM

datalake.py

from azure.datalake.store import core, lib
tenant = config.secrets["tenant"]
resource = config.secrets["datalakeresource"]
client_id = config.secrets["datalakeclientid"]
client_secret = config.secrets["datalakeclientsecret"]
credentials = lib.auth(tenant_id=tenant,
 client_secret=client_secret,
 client_id=client_id,
 resource=resource)
adlfsClient = core.AzureDLFileSystem(credentials, store_name=config.secrets["datalakestorename"])