连接hive数据库报错:Required field ‘serverProtocolVersion’ is unset!
完整报错如下所示:
Required field ‘serverProtocolVersion’ is unset!
User: root is not allowed to impersonate anonymous
解决方法:
hadoop的core-site.xml中添加如下配置:
注意hadoop.proxyuser.root.groups中的root根据自己的用户名称做调整
vim /moudle/hadoop-3.3.0/etc/hadoop/core-site.xml
<property>
<name>hadoop.proxyuser.root.groups</name>