本来用的hive1.2.1版本,现在升级到2.3.6之后dbeaver连不上hive了。
启动hiverserver2 后用第三方客户端连接(用的第三方客户端自带的驱动):
出现错误,连不上!
*Required field ‘serverProtocolVersion’ is unset! Struct:TOpenSessionResp(status:TStatus(statusCode:ERROR_STATUS, infoMessages:[org.apache.hive.service.cli.HiveSQLException:Failed to open new session: java.lang.RuntimeException:
User: gabriel is not allowed to impersonate anonymous …
解决方案一(没卵用)
错误原因:
网上说这是由于hive驱动版本的问题,删除驱动版本,hive安装目录:/opt/module/hive-2.3.6/lib下拿到匹配的驱动。
然后再次连接又报错!
Unexpected driver error occurred while connecting to database
org/apache/hive/service/rpc/thrift/TCLIService$Iface
org/apache/hive/service/rpc/thrift/TCLIService$Iface
org.apache.hive.service.rpc.thrift.TCLIService$If

在将Hive从1.2.1升级到2.3.6后,使用dbeaver等第三方客户端连接失败,报错'serverProtocolVersion is unset'。尝试更换Hive驱动版本无效。最终通过修改Hadoop的core-site.xml配置,允许用户gabriel impersonate,解决了连接问题。
最低0.47元/天 解锁文章
2463

被折叠的 条评论
为什么被折叠?



