是做hive查询吗?下面例子可参考
Error: Error while compiling statement: FAILED: HiveAuthzPluginException Unsupported privilege type all (state=42000,code=40000)
解决方案:之前的all不能用了,要改成select ,insert,update,delete这四个了
http://outofmemory.cn/code-snipp ... rity-authentication 关于hive权限控制的详细说明
开启Hive的身份认证功能,默认是false
<property>
<name>hive.security.authorization.enabled</name>
<value>true</value>
<description>Enable or disable the hive client authorization</description>
</property>
另外还有一个是表格创建者用于的权限配置项:
<property>
<name>hive.security.authorization.createtable.owner.grants</name>
<value>ALL</value>
<description>The privileges automatically granted to the owner whenever
a table gets created.An example like "select,drop" will grant select
and drop privilege to the owner of the table</description>
</property>
来自:hive疑难杂症及解决方案
http://www.aboutyun.com/forum.php?mod=viewthread&tid=20955
|