在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>
没配置 或者地方没配对。 当把这个参数配置对地方之后 错误自然消失。