Hadoop Azure Support: Gen2

Tansheet Izhad 21 Reputation points
2020-12-23T07:54:05.623+00:00

Can we connect to gen2 storage via sas token like we do azure storage blob?

Generally, we do hadoop configuration azure storage blob via sas token as :

sc.hadoopConfiguration.set("fs.azure.sas." + accountName + ".blob.core.windows.net", sasToken)

sc: spark session.

Do we have something similar for gen2 storage? I know we have OAuth 2.0 credential support and account key, but I am looking especially for sas token support for gen2 connector.

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
1,805 questions
Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,371 questions
Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,763 questions
0 comments No comments
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 79,546 Reputation points Microsoft Employee
    2020-12-23T12:35:48.34+00:00

    Hello @Tansheet Izhad ,

    Welcome to the Microsoft Q&A platform.

    Does ABFS support Shared Access Signature (SAS) token authentication?

    ABFS does not support SAS token authentication.

    Note: You can access an Azure Data Lake Storage Gen2 storage account using the storage account access key.

    spark.conf.set("fs.azure.account.key.<storage-account-name>.dfs.core.windows.net", "Storage_Account_Access_Key")  
    

    This article helps you to DIY: Apache Spark and ADLS Gen 2 support, make sure you have followed all the necessary steps to successfully configure ADLS gen2 on Hadoop - Apache Spark and Accessing Azure Data Lake Storage Gen2 From Clients.

    Hope this helps. Do let us know if you any further queries.

    ------------

    • Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification.
    0 comments No comments

0 additional answers

Sort by: Most helpful