Open MichaelGou1105 opened 3 years ago
hive开启权限后,与ranger对接时,需要设定用户为管理员用户
<property> <name>hive.security.authorization.enabled</name> <value>true</value> </property> <property> <name>hive.security.authorization.createtable.owner.grants</name> <value>ALL</value> </property> <property> <name>hive.users.in.admin.role</name> <value>hive</value> </property>
> set hive.users.in.admin.role hive.users.in.admin.role=hive > set role admin > create role test; OK
场景
命令