Question

How to troubleshoot an ADLS Gen2 Blob error: while writing to HDFS: Operation failed: "This request is not authorized to perform this operation.",

  • 9 June 2023
  • 0 replies
  • 23 views

Userlevel 2
  • StreamSets Employee
  • 0 replies

Problem:

You might get an error like below while using ADLS Gen2 to write/read from BLOB storage. 

RUN_ERROR: HADOOPFS_13 - Error while writing to HDFS: Operation failed: "This request is not authorized to perform this operation.", 403, HEAD, https://abcd.blob.core.windows.net/xxxx//?upn=false&action=getAccessControl&timeout=90


Solution: 

Error might be misleading but this could happen whenever you do not have correct permissions on the storage account or your blob is private and behind the firewall. 

 

  1. Check whether you have a "Storage Blob Data Contributor"  role assigned to your service account used to access the AZ blob. here is a good airticle on it  https://learn.microsoft.com/en-us/answers/questions/775151/cant-run-azure-synapse-notebook-in-pipeline 

 

  1. If your blob storage is private and behind the firewall, You can solve this error by adding public IP of the SDC host into the whitelist.  You can get the public IP of the SDC  host by running command curl ifconfig.co

0 replies

Be the first to reply!

Reply