我收到了错误,一旦我在hive终端中发出命令 show roles; 。请帮助我,我在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.
我在等待答案。 在此先感谢
答案 0 :(得分:1)
这样的命令在Hive Shell中不起作用,你必须转到Beeline。 哪个是HiveServer2的CLI。
将此字符串用于直线连接: !connect jdbc:hive2:// localhost:10000 /(将localhost替换为配置单元服务器的FQDN) 一旦你进入直线外壳。
展示角色; 显示当前角色;
将为您提供所需的输出