databricksazure-databricksdatabricks-unity-catalog

Unity catalog not enabled on cluster in Databricks


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.


Solution

  • 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