cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

AzureException: hadoop_azure_shaded.com.microsoft.azure.storage.StorageException: Server failed to a

SALP_STELLAR
New Contributor

Actually My first part of the code works fine:

 
 
dbutils.widgets.text("AutoLoanFilePath", "")
inputPath = dbutils.widgets.get("AutoLoanFilePath")
# inputPath = 'SEPT_2024/FAMILY_SECURITY'
autoPath = 'dbfs:/mnt/dbs_adls_mnt/Prod_landing/'+inputPath
autoLoanPath = autoPath+'/AUTOLOAN1.csv'
criteriaPath = autoPath+"/CRITERIA.csv"
newratePath = autoPath+"/NEWRATE.csv"
autoloanoutputPath = autoPath+"/AutoLoan1Processed.csv"
lsPath = '/mnt/dbs_adls_mnt/Prod_landing/'+inputPath
print(autoLoanPath)

I am trying to mount the directory as below:

%fs
ls /mnt/dbs_adls_mnt/Prod_landing

and I am getting this error:

AzureException: hadoop_azure_shaded.com.microsoft.azure.storage.StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

 

My scripts were working fine until now. It suddenly gave me error as above.

1 REPLY 1

SparkJun
Databricks Employee
Databricks Employee

This looks like an authentication issue when trying to access Azure Blob Storage from your Databricks environment. Can you please check the storage credentials and the setup?  Consider using an Azure AD service principal with the appropriate RBAC roles assigned instead of an access key: https://learn.microsoft.com/en-us/azure/databricks/connect/storage/azure-storage

Connect with Databricks Users in Your Area

Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you wonโ€™t want to miss the chance to attend and share knowledge.

If there isnโ€™t a group near you, start one and help create a community that brings people together.

Request a New Group