解决办法:
1.在hive-site.xml中配置
hive.metastore.sasl.enabled false If true, the metastore Thrift interface will be secured with SASL. Clients must authenticate with Kerberos. hive.server2.enable.doAs false hive.server2.authentication NONE
2.在Hadoop配置文件 core-site.xml错误
org.apache.hadoop.ipc.RemoteException(org.apache.hadoop.security.authorize.AuthorizationException): User: xx is not allowed to impersonate xx
hadoop.proxyuser.xx.hosts * hadoop.proxyuser.xx.groups *
3.集群所有节点都需要配置,配置完成后需要重启节点,否则不生效。
3.1关闭集群
3.2删除hadoop集群下的所有data/ logs/文件夹
[lele@hadoop102 hadoop-3.1.3]$ rm -rf data/ logs/
3.3格式化namenode
[lele@hadoop102 hadoop-3.1.3]hdfs namenode -format
3.4重启集群



