你可以尝试关闭主机校验
修改hive安装目录下conf/hive-site.xml,将hive.server2.enable.doAs设置成false
<property>
<name>hive.server2.enable.doAs</name>
<value>false</value>
<description>
Setting this property to true will have HiveServer2 execute
Hive operations as the user making the calls to it.
</description>
</property>
然后就可以成功