datagrip 连接hive 数据库hdfs报错:‘client_protocol‘ is unset

在尝试使用Datagrip连接Hive数据库HDFS时遇到'client_protocol'未设置错误。报错信息涉及到JDBC URI连接失败。问题根源是客户端Hive版本与服务端不匹配。解决方法是更新Datagrip中的Hive驱动版本,确保其与服务端Hive版本(2.1.1)一致,移除3.1.2版本驱动并添加与2.x版本兼容的驱动jar包。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

报错信息:

[ 08S01] Could not open client transport with JDBC Uri: jdbc:hive2://192.168.88.80:10000: Could not establish connection to jdbc:hive2://192.168.88.80:10000: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{set:hiveconf:hive.server2.thrift.resultset.default.fetch.size=1000, use:database=default}) org.apache.hive.org.apache.thrift.TApplicationException: Required field 'client_protocol' is unset! Struct:TOpenSessionReq(client_protocol:null, configuration:{set:hiveconf:hive.server2.thrift.resultset.default.fetch.size=1000, use:database=default}).

版本问题:

10002端口查看服务端hiveserver2版本为2.1.1

 datagrip里面

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值