版权声明:https://blog.csdn.net/lvtula https://blog.csdn.net/lvtula/article/details/89016845
在cloudera manager里面
配置hive + sentry
启动hiveserver2 执行命令 show roles 报错:
Caused by: org.apache.hive.service.cli.HiveSQLException: Error while compiling statement: FAILED: InvalidConfigurationException hive.server2.authentication can't be none in non-testing mode
原因是:
<property>
<name>sentry.hive.testing.mode</name>
<value>true</value>
</property>
没配置 或者地方没配对。 当把这个参数配置对地方之后 错误自然消失。
cloudera manager中配置在hive 配置的 sentry-site.xml 的 Hive 服务高级配置代码段(安全阀) 里面。