1.进入app/hadoop/etc/hadoop/目录下配置core-site.xml,添加配置文件如下
<property>
<name>hadoop.proxyuser.heipilei.hosts</name>
<value>*</value>
</property>
<property>
<name>hadoop.proxyuser.heipilei.groups</name>
<value>*</value>
</property>
2.进入app/hive/conf/目录下配置hive-site.xml,添加配置如下
<property>
<name>hive.server2.thrift.client.user</name>
<value>heipilei</value>
<description>Username to use against thrift client</description>
</property>
<property>
<name>hive.server2.thrift.client.password</name>
<value>heipilei</value>
<description>Password to use against thrift client</description>
</property>
<-- 这个也配上 不然hive2一直连接不上-->
<property>