02-18-2023 09:31 AM
I am trying to create database with external location abfss but facing the below error.
AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception: shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.KeyProviderException Failure to initialize configuration)
the command that I am using :
spark.sql("CREATE DATABASE IF NOT EXISTS test LOCATION 'abfss://<your-storage-account-name>@<your-storage-account-name>.dfs.core.windows.net/your/path'")
FYI, I am able to read data successfully though datalake in daatbricks
02-20-2023 08:21 AM
Hi @Arpit Agrawal , This issue generally comes when you set the ADLS at notebook level. If this is the case for you, please set the config at the cluster level. This should resolve the issue.
02-20-2023 08:21 AM
Hi @Arpit Agrawal , This issue generally comes when you set the ADLS at notebook level. If this is the case for you, please set the config at the cluster level. This should resolve the issue.
02-21-2023 10:49 PM
Hi @Arpit Agrawal
Hope all is well! Just wanted to check in if you were able to resolve your issue and would you be happy to share the solution or mark an answer as best? Else please let us know if you need more help.
We'd love to hear from you.
Thanks!
02-23-2023 10:18 AM
Hi @Arpit Agrawal,
Just a friendly follow-up. Did any of the responses help you to resolve your question? if it did, please mark it as best. Otherwise, please let us know if you still need help.
10-21-2024 08:21 AM
Changing it to a CLUSTER level for OAuth authentication helped me solve the problem.
I wish the notebook AI bot could tell me the solution.
before the changes, my configraiotn was at the notebook leve.and it has below errors
AnalysisException: org.apache.hadoop.hive.ql.metadata.HiveException: MetaException(message:Got exception: shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.KeyProviderException Failure to initialize configuration)
Caused by: HiveException: MetaException(message:Got exception: shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.KeyProviderException Failure to initialize configuration)
Caused by: MetaException: Got exception: shaded.databricks.azurebfs.org.apache.hadoop.fs.azurebfs.contracts.exceptions.KeyProviderException Failure to initialize configuration
Join a Regional User Group to connect with local Databricks users. Events will be happening in your city, and you won’t want to miss the chance to attend and share knowledge.
If there isn’t a group near you, start one and help create a community that brings people together.
Request a New Group