环境是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倒数第二个一致