【记录】springboot连接hive出错User: xxx is not allowed to impersonate anonymous
环境是hive和Hadoop
报错如:User: liwei is not allowed to impersonate anonymous
修改hadoop 配置文件 $HADOOP_HOME/etc/hadoop/core-site.xml
<property> <name>hadoop.proxyuser.liwei.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.liwei.groups</name> <value>*</value> </property>
注意报错的红色部分,和下面配置中name倒数第二个一致
参考文章:https://blog.csdn.net/wuleidaren/article/details/106395543