While running databricks migrate pipeline facing an issue with invalid configuration for storage account key

Ashwini Gaikwad 130 Reputation points
2024-06-17T15:46:25.1033333+00:00

Hello Team,

I am trying to run the yaml pipeline for azure databricks migration from Non UC workspace to UC workspace for reference this is the rep https://github.com/databrickslabs/migrate so while exporting the hive metastore, I am running into error :

image

2024-06-17,15:30:19;INFO;Logging failure

2024-06-17,15:30:19;ERROR;Failure to initialize configurationInvalid configuration value detected for fs.azure.account.key

2024-06-17,15:30:19;ERROR;{"resultType": "error", "summary": "Failure to initialize configurationInvalid configuration value detected for fs.azure.account.key", "cause": "---------------------------------------------------------------------------\nPy4JJavaError

Also I followed this article to solve the issue https://stackoverflow.com/questions/69825487/error-invalid-configuration-value-detected-for-fs-azure-account-key

https://medium.com/@kyle.hale/troubleshooting-invalid-configuration-value-detected-for-fs-azure-account-key-6c6fcc67b217but it didn't help.

I am adding below spark configuration in the Databricks cluster but still somehow the pipeline throws me an error for the invalid configuration detected for storage account key.

spark.f"fs.azure.account.key.testadls01.dfs.core.windows.net {{secrets/DevOps/d-01-sa}}

Note: Storage account key is not expired and also has been rotated for testing

Request you to please let me know how to solve the issue or what spark configuration should I add in the cluster so this error will be mitigated.

Regards,

Ashwini Gaikwad

Azure Data Lake Storage
Azure Data Lake Storage
An Azure service that provides an enterprise-wide hyper-scale repository for big data analytic workloads and is integrated with Azure Blob Storage.
1,481 questions
Azure Databricks
Azure Databricks
An Apache Spark-based analytics platform optimized for Azure.
2,215 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Bhargava-MSFT 31,116 Reputation points Microsoft Employee
    2024-06-18T14:55:54.1+00:00

    Looks like only the following config is supported when mounting blob storage using wasbs driver:

    • fs.azure.account.key.<storage-account-name>.blob.core.windows.net or 
    • fs.azure.sas.<container-name>.<storage-account-name>.blob.core.windows.net

    The config that resulted in an error will only work for abfss driver (storage hierarchy must be enabled ie ADLS-G2) and not wasbs driver. 

    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.