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
Contributor III
Contributor III

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.

Join 100K+ Data Experts: Register Now & Grow with Us!

Excited to expand your horizons with us? Click here to Register and begin your journey to success!

Already a member? Login and join your local regional user group! If there isn’t one near you, fill out this form and we’ll create one for you to join!