遇到问题:
User: hadoop is not allowed to impersonate hadoop (state=08S01,code=0)
解决方法:
在hadoop的core-site.xml中添加如下内容,然后重启hadoop,再使用beeline连接即可
<property> <name>hadoop.proxyuser.hadoop.hosts</name> <value>*</value> </property> <property> <name>hadoop.proxyuser.hadoop.groups</name> <value>*</value> </property>
连接成功:
参考博客:
https://blog.csdn.net/zjh_746140129/article/details/83153873