星星博客 »  > 

连接hive数据库报错:Required field ‘serverProtocolVersion‘ is unset!

连接hive数据库报错:Required field ‘serverProtocolVersion’ is unset!

完整报错如下所示:
Required field ‘serverProtocolVersion’ is unset!
User: root is not allowed to impersonate anonymous

解决方法:
hadoop的core-site.xml中添加如下配置:

vim /moudle/hadoop-3.3.0/etc/hadoop/core-site.xml
<property>
      <name>hadoop.proxyuser.root.groups</name>
      

相关文章