shaded.databricks.org.apache.hadoop.fs.azure.AzureException: An exception while trying read from storage container in azure blob storage

SAL 0 Reputation points
2024-09-05T14:48:33.0033333+00:00

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)

But while I am trying to mount the directory I am getting an error of

%fs
ls /mnt/dbs_adls_mnt/Prod_landing

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. Caused by: StorageException: Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
38,678 questions
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.