Make sure the value of Authorization header is formed correctly including the signature

Faisal Qureshi 35 Reputation points
2023-04-02T18:57:35.26+00:00

I am practicing with Azure Databricks and during setting the spark configuration for sasEntity, sasToken, I get the below error.

shaded.databricks.org.apache.hadoop.fs.azure.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.

I have checked the output of below command for returned values.

datasource = spark.conf.get("com.databricks.training.azure.datasource").split("\t")

It does return the required 3 values, source, sasEntity, sasToken and is not empty.

Could someone please explain me why spark configuration is complaining for setting the token value returned by the get command above.

I'm referencing the week3 material in course "Microsoft Azure Databricks for Data Engineering", titled "04-Working-With-Dataframes"

Thanks,

Faisal

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
40,159 questions
{count} votes

1 answer

Sort by: Most helpful
  1. KD Name 0 Reputation points
    2023-11-23T18:03:55.88+00:00

    Any one able to solve this issue? I am also facing the same issue with all notebooks from

    https://github.com/solliancenet/microsoft-learning-paths-databricks-notebooks/tree/master/data-engineering/DBC

    Error:

    shaded.databricks.org.apache.hadoop.fs.azure.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.

    0 comments No comments

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.