我在hive中创建新role "create role test_role;"的时候报错了:
createRole not implemented in FallbackHiveAuthorizer
但是我的hive.security.authorization.enabled已经设置成true了
清除缓存试试或者重启,可能是配置未生效的缘故
你试下配置一下这个:
set hive.security.authorization.task.factory = org.apache.hadoop.hive.ql.parse.authorization.HiveAuthorizationTaskFactoryImpl;
其他的配置权限:
hive.security.authorization.createtable.owner.grants = ALL
hive.security.authorization.createtable.role.grants = admin_role:ALL
hive.security.authorization.createtable.user.grants = user1,user2:select;user3:create
那个版本hive
你看看这个配置
hive.security.authorization.enabled
true
hive.security.authorization.createtable.owner.grants
ALL
hive.security.authorization.task.factory
org.apache.hadoop.hive.ql.parse.authorization.HiveAuthorizationTaskFactoryImpl
hive.users.in.admin.role
hdfs
进来学习下,hive好久没用了