02-07-2023 01:20 PM
I'm using Azure Databricks.
I've been following this guide to create a Unity Catalog metastore using a managed identity.
When I create the catalog and the validation step kicks off, I get this screen:
What does this mean?
If I click "Force create" and then assign the metastore to a workspace, I'm not able to write anything to the metastore. Eg, doing a simple "CREATE TABLE main.default.test" yields the following error:
[RequestId=<uuid> ErrorClass=INVALID_STATE] Failed to access cloud storage: AbfsRestOperationException exceptionTraceId=<uuid>
I believe that the failed validation is correct given I can't create a table, but I have no idea what's wrong. Any thoughts or pointers?
EDIT: formatting.
UPDATE: When creating the metastore, the "ADLS Gen 2 path" must exist in the storage container. Meaning, if the ADLS Gen 2 path value is "foo@bar.dfs.core.windows.net/baz", the "baz" folder must exist in the "foo" container. That gets the validation to pass. However, creating a table still creates the same error mentioned above.
UPDATE2: The issue was fully resolved by @Tom Smith's comment in this thread, which recommends to follow the upgrade documentation.
02-09-2023 03:17 PM
02-09-2023 11:01 AM
Hi, Please look at the similar thread and let us know if that helps.
02-09-2023 11:26 AM
Hi @Debayan Mukherjee, unfortunately that other thread isn't helpful because it's about AWS and I'm using Azure. Any other ideas? Thanks!
02-09-2023 03:17 PM
I found the solution here: https://community.databricks.com/s/question/0D58Y00009pvzofSAA/unity-catalogerror-creating-table-err...
02-17-2023 12:34 PM
Read my "UPDATE2" for the answer/solution.
04-08-2023 12:36 AM
Hi @Alex Loddengaard
Hope everything is going great.
Just wanted to check in if you were able to resolve your issue. If yes, would you be happy to mark an answer as best so that other members can find the solution more quickly? If not, please tell us so we can help you.
Cheers!
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