Forum Discussion

GV2019's avatar
GV2019
New Contributor II
6 years ago
Solved

HDFS Writer Writing to ADLS Gen2

I am trying to upload a file to adls gen2 storage using OAuth method to connect
The Account creation and validation was successfull
But the Writer Fails with following error

The ApplicationID/ClientID used is assigned as contributor to the storage account
The HDFS Writer Config

Where test123 is Storage account
aus is the Directory within
I tried adl://test123.dfs.core.windows.net/aus It did not work

Any ideas

I Used abfs://aus@test123.dfs.core.windows.net/ebaw
I get New error

REST API service endpoint returned error result: status code = 403

Resolution:

Please check the values of Snap properties.

Reason:

REST API service endpoint returned error result: status code = 403, reason phrase = This request is not authorized to perform this operation using this permission., refer to the error_entity field in the error view document for more details

Thanks
-Venkat

  • This is resolved : The issue was the Role Assignments For Service principal on Storage Account
    The Service Principal must be Storage Blob Data Contributor at the Container level

4 Replies

  • cstewart's avatar
    cstewart
    Former Employee

    If you are using ADLS Gen2 then the format of the URL should be like:
    abfs(s)://filesystem2@snaplogicaccount.dfs.core.windows.net/dir1

    • GV2019's avatar
      GV2019
      New Contributor II

      I Used abfs://aus@test123.dfs.core.windows.net/ebaw
      I get New error

      REST API service endpoint returned error result: status code = 403

      Resolution:

      Please check the values of Snap properties.

      Reason:

      REST API service endpoint returned error result: status code = 403, reason phrase = This request is not authorized to perform this operation using this permission., refer to the error_entity field in the error view document for more details

      • GV2019's avatar
        GV2019
        New Contributor II

        This is resolved : The issue was the Role Assignments For Service principal on Storage Account
        The Service Principal must be Storage Blob Data Contributor at the Container level

  • Meenu's avatar
    Meenu
    New Contributor

    Hi @ GV2019

    I am trying to read file from adls.
    but getting this error.

    In the snap, i have added like this;

    Could you please help check once from your side or provide some example.