hive - 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
但不知何故,系统管理员角色未启用。
解决方案
推荐阅读
- wordpress - 仅在主页上显示来自特定类别的最近帖子
- javascript - React Native:将 useState() 数据传递到不相关的屏幕
- java - 闰年Java程序
- node.js - 构建环回 3 项目
- wordpress - ERRORED_DOCUMENT_REQUEST
- keras - ValueError:形状 (None, 6) 和 (None, 5) 不兼容
- c# - 在全屏 UWP 应用程序前启动外部进程
- python - Python Docker容器,找不到模块
- kotlin - 协程在调度程序上运行,即使它的线程被关闭
- powershell - 无法使用 powershell 导入 Active Directory 模块