[Python] Use Gen2 instead of blob storage

Discussão em 'Python' iniciado por Stack, Dezembro 17, 2024.

  1. Stack

    Stack Membro Participativo

    I currently can access files within blob storage, however I do not know if its Gen2 or simple Blob Storage linked service. So I need to connect to ADLS Gen2, use SAS, service principal and managed identity to link up the service. How do I go about it with Python Notebook? I am newbie at this.

    I was given this, does this work?

    spark.conf.set("fs.azure.account.auth.type.account.dfs.core.windows.net", "SAS")
    spark.conf.set("fs.azure.sas.token.provider.type.account.dfs.core.windows.net", "org.apache.hadoop.fs.azurebfs.sas.FixedSASTokenProvider")
    spark.conf.set("fs.azure.sas.fixed.token.acount.dfs.core.windows.net", "token")

    Continue reading...

Compartilhe esta Página