一.再一次查询hive中的数据时爆出了如下错误:
Authorizationfailed:No privilege 'Select' found for inputs { database:hive,table:emp,columnName:id}.UseSHOW GRANT to get more details.
隐隐的感觉应该是自己开启hive权限控制后,现在使用的用户权限不足。因此只需要将select权限赋予用户即可。
二.Hive的权限控制并不是完全安全的。hive的权限控制是为了防止用户不小心做了不合适的操作。
若要使用Hive的授权机制,需修改hive-site.xml中设置,将其设为如下:
<property>
<name>hive.metastore.authorization.storage.checks</name>
<value>true</value>
<description>
Should the metastore do authorization checks against the underlying storage (usually hdfs)
for operations like drop-partition (disallow the drop-partition if the user in
que