将数据库所有者设置为角色不允许用户创建 table

Setting database owner to a role does not allow users to create table

在 Apache Hive 中,我将数据库的所有者设置为一个角色。

用户已分配此角色。

用户无法在此数据库中创建 table。

错误是:

Principal (name=xx, type=USER) does not have following privileges for operation CREATETABLE on object type database

如何允许多个用户在数据库上创建 table(以及所有其他权限)?

定义所有者时出错。

命令应该是:

alter database mydb set owner role myrole

而不是

alter database mydb set owner user myrole