Unity Catalog在此集群上未启用

huangapple go评论54阅读模式
英文:

Unity Catalog is not enabled on this cluster

问题

我正在尝试在Databricks上设置Unity Catalog,为此我创建了一个新的集群,运行时版本为11.3,访问模式为Single user。我尝试从之前创建的集群附加的笔记本中运行以下代码:

%sql
create catalog if not exists playcatdemo

但是我收到以下错误消息:

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

这个答案来自于这个讨论,它说我需要将访问模式设置为Single user或Shared。在我的情况下,我只有两个选项,分别是Single user和No isolation shared。然而,我已经选择了Single user,所以我想这不应该是一个问题。最近有没有人遇到过这样的问题,你是如何解决的?

英文:

I'm trying to set up Unity Catalog on Databricks and for that purpose I created a new cluster with runtime version 11.3 and Single user as Access Mode. I tried to run

%sql
create catalog if not exists playcatdemo

from a notebook attached to the cluster I made previously but I get the following error:
> [UC_NOT_ENABLED] Unity Catalog is not enabled on this cluster.

The answer from this discussion says that I need to set the Access Mode to either Single user or Shared. In my case, I have only two options and those are Single user and No isolation shared. However, I have Single user as a selected so I guess this shouldn't be a problem. Has anyone stumbled upon an issue like this recently and how did you manage to fix it?

答案1

得分: 1

我遇到了同样的问题,我在创建工作区和集群之后启用了元数据存储,为了解决问题,我只需编辑集群并将 Databricks 运行时版本重新更改为 >= 11.3,然后我就可以在右侧摘要中看到 Unity 目录,我正在使用个人计算策略和共享访问模式。希望这也能解决你的问题。

如果你还没有创建 UC,请按照以下步骤操作:
你的用户帐户应该是 Azure/AWS 中 Databricks 资源的 owner 角色的一部分,然后你登录到 Databricks 工作区,在右上角找到你的用户名下的“管理用户”,然后将会重定向到创建元数据存储页面,然后按照以下步骤创建元数据存储。
https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/azure-managed-identities#config-managed-id

英文:

I faced the same issue, Which I have enabled metastore after workspace and cluster created, to fix the issue all I had to do to edit the cluster and re-change the databricks run time version to >= 11.3 then I can see Unity Catalog on the right-hand side summary and I'm using personal compute policy with shared access mode. Hopefully this will also fix your issue.

If you haven't create UC then follow these steps:
Your user account should be part of owner role for the databricks resource in Azure/AWS, then you login to databricks workspace and top right hand conner look for manage user under your username and that will redirect to create metastore page then follow these steps to create metastore.
https://learn.microsoft.com/en-us/azure/databricks/data-governance/unity-catalog/azure-managed-identities#config-managed-id

huangapple
  • 本文由 发表于 2023年3月3日 21:39:23
  • 转载请务必保留本文链接:https://go.coder-hub.com/75627803.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定