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

KUDU同步数据到Hive报错

KUDU同步数据到Hive报错
一:现象
Azkaban每晚任务:将KUDU数据写入Hive
偶尔出现连接kudu报错:
Exception in thread “main” java.sql.SQLException: Unable to open scanner: Timed out: Client connection negotiation failed: client connection to 10.x.x.158:7050: BlockingWrite timed out: Timed out: Client connection negotiation failed: client connection to 10.x.x.168:7050
第一次出现时,重新执行任务后正常
但是过了一周后又出现该问题。于是入手排查(第一次出现就应该排查原因)
二:排查
1.怀疑是该ip的节点在同步时间段执行其他任务,资源不足导致
遂查看了cpu资源在01:00时在92%,确实有点高,但是不至于查不了Kudu
2.根据azkaban报错信息查看相对应两台服务器的kudu日志:
发现其中一台在同步时间点有如下日志信息

W0622 23:18:07.447243 14367 leader_election.cc:287] T f79d2020a3fc426787576141669a57f7 P 2b0320de8d0b4c14ab507ddd07d93a83 [CANDIDATE]: Term 2 pre-election: RPC error from VoteRequest() call to peer 35222f8138fe4b1b9a7c49eb11287de0: Timed out: RequestConsensusVote RPC to 10.x.x.168:7050 timed out after 1.974s (SENT)
W0707 23:32:53.751653 14365 consensus_peers.cc:428] T 57a5267a51ca4eee9c74e2c1c35ddd95 P 2b0320de8d0b4c14ab507ddd07d93a83 -> Peer 732a535e5f96420fa8046e58d3305259 (h167:7050): Couldn't send request to peer 732a535e5f96420fa8046e58d3305259 for tablet 57a5267a51ca4eee9c74e2c1c35ddd95. Error code: TABLET_NOT_FOUND (6). Status: Not found: Tablet not found: 57a5267a51ca4eee9c74e2c1c35ddd95. Retrying in the next heartbeat period. Already tried 1 times.

看了下确实没有57a5267a51ca4eee9c74e2c1c35ddd95这个tablet,再看其他时间点,也有这些报错信息,说明并不是在同步时间才出现的问题。
再看日志发现:

W0708 11:36:44.159759 14366 consensus_peers.cc:428] T 57a5267a51ca4eee9c74e2c1c35ddd95 P 2b0320de8d0b4c14ab507ddd07d93a83 -> Peer f908fc5e8f534e9aa025d20dc7f54425 (h42:7050): Couldn't send request to peer f908fc5e8f534e9aa025d20dc7f54425 for tablet 57a5267a51ca4eee9c74e2c1c35ddd95. Status: Remote error: Service unavailable: Soft memory limit exceeded (at 100.03% of capacity). Retrying in the next heartbeat period. Already tried 102 times.

Soft memory limit exceeded (at 100.03% of capacity)
很明显是超出了内存限制。
查看了一下服务器的内存,还有40G,排除
对比了一下limit.conf,正常,排除
查看CDH-kudu内存设置:
在这里插入图片描述
memory.soft_limit_in_bytes是-1,说明没有限制。
调整Hard Memory Limit和Block Cache Capacity
在这里插入图片描述
三:重启Kudu
1.停止kudu写入业务(JStorm,SparkStreaming)
2.重启Kudu
3.等待所有的Tablet都打开block,端口7050打开,在kudu-ui界面的tablets中正常显示
4.启动业务(JStorm,SparkStreaming)

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

相关文章:

  • 基于java的叮当书城系统毕业设计(源代码+数据库+部署文档+部署视频)
  • 最新版qq空间刷留言小秘书 V1.20 正式版
  • 服务器无法在此时接收控制信息,如何修复win10专业版wifi错误1061服务无法在此时接受控制信息...
  • PASCAL VOC 2012 数据集解析
  • UWB技术的工作原理
  • 电商系统的简单架构
  • cisco2600路由器破解密码和重装IOS
  • 看这里NetWork location failed because baidu location service can not decrypt the request query,so加载不到
  • Oracle11g安装详细步骤(图文教程)
  • C语言与Java的区别
  • php商城开发人人分销团队级差分红升级规则订制
  • 开通博客通告
  • 进程间通信IPC——管道(1) 两个进程间通信
  • myeclipse 9.0
  • swf反编译工具
  • python主要应用于哪些方面,python一般用来做什么
  • Linux运维工程师常见基础面试题
  • 电子商务网站后台管理系统的设计与实现
  • js中void 0是什么意思,javascript:void()
  • 负载均衡与反向代理
  • UG软件安装教程
  • 深度学习(十七)——SSD, YOLOv2
  • 关于TL494
  • NodeJS某微信小程序云开发的论坛系统的设计与实现-毕业设计源码41083
  • Lazada新手批量发布产品快速铺货详细教程:
  • FFmpeg(12)-使用NDK通过GLSurfaceView完成视频的播放
  • 会声会影X5
  • 2022年氧化工艺复审考试及氧化工艺模拟试题
  • PHP工程师简要指南:如何使用settimestamp函数
  • 电感基础知识