当前位置: 首页 > news >正文

Ranger Hive Service连接测试失败问题解决

个人博客地址:Ranger Hive Service连接测试失败问题解决 | 一张假钞的真实世界

异常信息如下:

org.apache.ranger.plugin.client.HadoopException: Unable to connect to Hive Thrift Server instance..
Unable to connect to Hive Thrift Server instance..
Could not open client transport with JDBC Uri: jdbc:hive2://192.168.72.212:10000: Could not establish connection to jdbc:hive2://192.168.72.212: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}).
Could not establish connection to jdbc:hive2://192.168.72.212: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}).
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}). 

百度后是因为Hive版本不匹配导致的。我的测试环境Hive版本是2.1.1,通过下面的命令发现确实版本不一致:

# find . -name "*hive*"
./ews/webapp/WEB-INF/classes/ranger-plugins/hive
./ews/webapp/WEB-INF/classes/ranger-plugins/hive/ranger-hive-plugin-1.2.0.jar
./ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-common-2.3.2.jar
./ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-service-2.3.2.jar
./ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-exec-2.3.2.jar
./ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-metastore-2.3.2.jar
./ews/webapp/WEB-INF/classes/ranger-plugins/hive/hive-jdbc-2.3.2.jar

问题解决方法就显而易见了。

http://www.lryc.cn/news/533389.html

相关文章:

  • 车机音频参数下发流程
  • 大模型推理——MLA实现方案
  • redis之GEO 模块
  • 21.2.7 综合示例
  • 使用Docker + Ollama在Ubuntu中部署deepseek
  • 【C语言标准库函数】三角函数
  • CNN-day9-经典神经网络ResNet
  • 淘宝分类详情数据获取:Python爬虫的高效实现
  • 机器学习 —— 深入剖析线性回归模型
  • 33.日常算法
  • #渗透测试#批量漏洞挖掘#微商城系统 goods SQL注入漏洞
  • 【翻译+论文阅读】DeepSeek-R1评测:粉碎GPT-4和Claude 3.5的开源AI革命
  • Vision Transformer学习笔记(2020 ICLR)
  • 一步一步生成音乐类小程序的详细指南,结合AI辅助开发的思路
  • 25/2/8 <机器人基础> 阻抗控制
  • golang 开启HTTP代理认证
  • 详解Nginx no live upstreams while connecting to upstream
  • Open3d Qt的环境配置
  • 5.Python字典和元组:字典的增删改查、字典遍历、访问元组、修改元组、集合(set)
  • 深度学习系列--04.梯度下降以及其他优化器
  • 2022java面试总结,1000道(集合+JVM+并发编程+Spring+Mybatis)的Java高频面试题
  • Ubuntu MKL(Intel Math Kernel Library)
  • 消费电子产品中的噪声对TPS54202的影响
  • 第四十章:职场转折:突破困境,重新出发
  • c++ 不定参数,不定类型的 max,min 函数
  • 数据库的关系代数
  • VSCode使用总结
  • 关系模型的数据结构及形式化定义
  • 【C++入门讲解】
  • 数据表中的视图操作