cancel
Showing results forย 
Search instead forย 
Did you mean:ย 
Data Engineering
Join discussions on data engineering best practices, architectures, and optimization strategies within the Databricks Community. Exchange insights and solutions with fellow data engineers.
cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Trying to create external table in Hive Metastore

mayank_gupta
New Contributor II

Receiving this error: KeyProviderException: Failure to initialize configuration for storage account adlspersonal.dfs.core.windows.net: Invalid configuration value detected for fs.azure.account.key

I used hive meta store to save my table

 

%python
spark.read.table("catalog.default.table").write.option("path", "abfss://container@storage_acc.dfs.core.windows.net/dir1").saveAsTable("annual_enterprise_survey") 

 

But, on running:

 

%python

dbutils.fs.ls("abfss://container@storage_acc.dfs.core.windows.net/dir1")

 

Things are working perfectly. Why so?

Apart from this when trying to save tables in UC things are again working fine.

2 REPLIES 2

amr
Databricks Employee
Databricks Employee

not sure about that error, but try to do it using SQL, see if it will work
create table hive_metastore.annual_enterprise_survey as select * from catalog.defaul.table

mayank_gupta
New Contributor II

I tried that too but received the same error. I am trying to understand the issue here. It says Invalid configuration value detected for fs.azure.account.key. But the same is working when trying to list files.

Connect with Databricks Users in Your Area

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