Azure Databricks fails

Catherine 刘 30 Reputation points
2023-07-20T13:58:55.4033333+00:00

Hello,

In the databricks notebook which is provided by Microsoft training classes, when I tried to import => read a data (csv or json) like

path = source + "/wikipedia/pagecounts/staging_parquet_en_only_clean/"
files = dbutils.fs.ls(path)
display(files)

, there were"server failed" message each time:

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 do not quite understand this message and can not fix this by myself.

PS: I am using a Premium - 14 days Free DBUs for practicing.

Thank you in advance for your reply

Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,042 questions
{count} votes

Accepted answer
  1. PRADEEPCHEEKATLA-MSFT 84,051 Reputation points Microsoft Employee
    2023-07-27T08:21:48.85+00:00

    @Catherine 刘 - Thanks for the question and using MS Q&A platform.

    There are two things regarding storage accounts & Databricks:

    • Databricks automatically creates a storage account for each workspace to hold so-called DBFS Root. This storage account is meant to be used to keep only temporary data, libraries, cluster logs, models, etc. It's not designed to keep the production data as this storage account isn't accessible outside of the Databricks workspace.
    • Databricks can work with storage accounts created outside of the workspace (documentation) - just create a dedicated storage account to keep your data, and access it using the abfss protocol as described in the documentation, or mount it into workspace (although it's not recommended anymore). And then you can access that storage account from Synapse & other tools as well.

    The one which you are trying to access is an internal databricks storage account which you cannot modify any settings or you cannot assign any permissions on the storage account. If you try to modify you will experience this error message: DenyAssignmentAuthorizationFailed.

    User's image

    Note: You need to try to access the storage account other than default storage, if you wan t to access using dbutils.

    Hope this helps. Do let us know if you any further queries.


    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


0 additional answers

Sort by: Most helpful