Hello SHYAMALA GOWRI,
Thank you for posting your query here!
As per the error message it seems like the Azure Blob Storage is not able to authenticate using the provided Shared Access Signature (SAS) token.
Please make sure that the SAS token you’re using is correct and has not expired.
When using a SAS token, you should set the configuration as follows:
spark.conf.set(
"fs.azure.sas.<container-name>.<storage-account-name>.blob.core.windows.net",
"<your-sas-token>"
)
Also, the blob file path should be in the following format:
wasbs_path = 'wasbs://%s@%s.blob.core.windows.net/%s' % (
blob_container_name, blob_account_name, blob_relative_path
)
Here are a few posts on similar query that might help: https://stackoverflow.com/questions/72040966/getting-authentication-error-while-accessing-azure-blob-tables-using-pyspark
https://stackoverflow.com/questions/69860096/reading-data-from-blob-without-accountkey-with-pyspark
I hope this helps! Please let me know if the issue persists or if you have any other questions.