7.Hive授权参考(开启sentry之后,对用户授权用不了,只能针对用户组,grant role testrole to user xxxxxxx; ) 7.1:角色创建和删除 create role star_read ; drop role star_read ; grant role star_read to group star_read; 7.2:角色授权和取消授权 7.2.1:表授权给角色 grant select on table test_table to role star_
指令类型: 创建.删除角色: CREATE ROLE sentry_all; droop role admin_role; 角色授权/撤销权限: 数据库级别角色授权 GRANT ALL ON DATABASE default TO ROLE bd; 表级别角色授权 GRANT SELECT ON table sentry_test TO ROLE sentry_insert; 字段级别授权 GRANT select(columnName) ON table sentry_test TO RO
1.报无法实例化metastore连接 hive> show tables; FAILED: SemanticException org.apache.hadoop.hive.ql.metadata.HiveException: java.lang.RuntimeException: Unable to instantiate org.apache.hadoop.hive.ql.metadata.SessionHiveMetaStoreClient 解决: 将sentry和shiro包拷贝到 h