本来用的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