7

We are trying out Unity catalog in Azure Databricks. We connected a pre-existing workspace to the new metastore.

I created a new catalog. When I run a notebook and try to write to table "myfirstcatalog.bronze.mytable" I get the error

[UC_NOT_ENABLED] Unity Catalog is not enabled on this cluster.

I have run this both on an pre-existing cluster as well as a newly cluster.

Alex Ott
  • 80,552
  • 8
  • 87
  • 132
Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96

2 Answers2

6

I found the problem. I had used access mode None, when it needs Single user or Shared.

To create a cluster that can access Unity Catalog, the workspace you are creating the cluster in must be attached to a Unity Catalog metastore and must use a Unity-Catalog-capable access mode (shared or single user).

https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/compute

Mathias Rönnlund
  • 4,078
  • 7
  • 43
  • 96
0

I got the same error. So I deleted and recreated my cluster and noticed the second time it had a tag "Unity Catalog". This time it worked.

Also in the admin console when I looked at my workspaces, this one had a - in the Metastore column. When I did a hard-refresh (CTRL-F5), the metastore appeared.

Perhaps there was extra time required for it to provision.

Nick.Mc
  • 18,304
  • 6
  • 61
  • 91