hadoop.security.authorization 在 core-site.xml 中配置。
<property>
<name>hadoop.security.authorization</name>
<value>false</value>
</property>
当配置为 true 时,hivesererver2 需要知道当前用户,仅能列出用户有权限的查询语句等。如果没有和 ldap 关联,直接用浏览器打开 hiveserver2 的 web 页面,导致 remoteUser 为 null,空用户不能查询其他用户的信息。
hiveserver2.jsp 源代码