hive版本:3.12
解决:
core-site.xml
<property>
<name>hadoop.proxyuser.username.groups</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.username.hosts</name>
<value>*</value>
</property>
hive-site.xml
<property>
<name>hive.server2.enable.doAs</name>
<value>false</value>
</property>