首页 > 解决方案 > Trino Hive 连接器:如何启用管理员角色(系统角色)?

问题描述

在 trino 363 中,我们使用 hive 连接器。

在 metastore-site.xml 中:

    <property>
        <name>hive.users.in.admin.role</name>
        <value>max</value>
    </property>

属于 admin 角色的用户需要先运行“set role”命令才能获得 admin 角色的权限,因为该角色默认不在当前角色中。

可以使用用户 max 登录 trino cli,但是:

set role admin给出:failed: line 1:1: Role 'admin' does not exist

Create role admin;给出: System roles are not enabled

SHOW CURRENT ROLES;不显示任何角色

我已经按照以下说明进行操作: https ://cwiki.apache.org/confluence/display/Hive/SQL+Standard+Based+Hive+Authorization#SQLStandardBasedHiveAuthorization-Configuration

但不知何故,系统管理员角色未启用。

标签: hiverolestrino

解决方案


推荐阅读