hive不能在cloudera中创建角色和显示角色?

mv1qrgav  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(525)

我得到的错误,一旦我给命令显示角色;在Hive终端。请帮助我,我在hive-site.xml中添加了一些属性。
我在cloudera-quickstart-5.4.2.0-vmware中工作。

<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>
[cloudera@quickstart ~]$ hive

Logging initialized using configuration in jar:file:/usr/jars/hive-common-1.1.0-cdh5.4.2.jar!/hive-log4j.properties
WARNING: Hive CLI is deprecated and migration to Beeline is recommended.
hive> show roles;
FAILED: SemanticException The current builtin authorization in Hive is incomplete and disabled.

我在等答案。提前谢谢

g2ieeal7

g2ieeal71#

像这样的命令在Hive壳中不起作用,你必须移动到直线。这是hiveserver2的cli。
使用此字符串进行直线连接:!连接jdbc:hive2://localhost:10000/ (用配置单元服务器的fqdn替换localhost)一旦进入beeline shell。
显示角色;显示当前角色;
会给你想要的结果

相关问题