HiveAccessControlException Permission denied: Principal [name=hive, type=USE]does not have following

问题:
Caused by: org.apache.hadoop.hive.ql.security.authorization.plugin.HiveAccessControlException: Permission denied: Principal [name=hive, type=USER] does not have following privileges for operation QUERY [[SELECT] on Object [type=TABLE_OR_VIEW, name=sy_datacenter.dim_provinces_cities_towns]]

HiveAccessControlException Permission denied: Principal [name=hive, type=USE]does not have following
分析:hive权限出现问题
解决:
HiveAccessControlException Permission denied: Principal [name=hive, type=USE]does not have following
未开启模拟用户模式,开启后,重启客户端配置即可。
HiveAccessControlException Permission denied: Principal [name=hive, type=USE]does not have following
HiveAccessControlException Permission denied: Principal [name=hive, type=USE]does not have following
HiveAccessControlException Permission denied: Principal [name=hive, type=USE]does not have following
问题解决。