cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

HDFS Writer Writing to ADLS Gen2

GV2019
New Contributor II

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
image

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

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

1 ACCEPTED SOLUTION

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

View solution in original post

4 REPLIES 4

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
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
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
New Contributor

Hi @ GV2019

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

In the snap, i have added like this;
image

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