当前位置:网站首页>记录生产的一次OOM异常
记录生产的一次OOM异常
2022-06-30 01:57:00 【默主归沙】
背景
为了让业务验收sql,特意一周时间在搞sql测试,测试环境中的运行一点问题都没有,但是一上生产,之前成功的代码,基本全军覆没。公司的数仓架构是Hive+Doris的形式,就是数仓在Hive上建立,最后的ads层要映射到Doris中,帆软通过读取Doris中的数据去进行可视化展示。
问题
测试环境中的Hive建表语句验收基本完毕,但是一到生产环境,hive中的表没有内容,dws与dwt数据正常,唯独ads层的hour这边没有数据。因为调度也没有报错,于是自己在服务器通过hive -f XX.sql去跑,果不其然就报错,基本是轮询异常等。
解决
在每个sql文件上面添加五个参数,设置hive的内存。
set hive.exec.dynamic.partition.mode=nonstrict;
set hive.exec.max.dynamic.partitions.pernode=10000000;
set hive.exec.max.dynamic.partitions =10000000;
set hive.exec.max.created.files =10000000;
set hive.auto.convert.join=false;
经验
生产环境相对于测试环境会数据量比较多,容易照成OOM。还是把hive的参数往最大化设置。
边栏推荐
- [machine learning Q & A] accuracy, accuracy, recall, ROC and AUC
- Unity2D--给动画添加关键帧并绑定事件
- 9 — 正则校验集合
- Cookie encryption 12
- Summary of DOM
- Scala basics [introduction and installation]
- ES6 one line code for array de duplication
- [machine learning Q & A] data sampling and model verification methods, hyperparametric optimization, over fitting and under fitting problems
- Cookie encryption 9
- Matlab 2012a 绘制带箭头的线段
猜你喜欢
随机推荐
当大学毕业感到迷茫怎么办?
C语言 成绩排名
【PyTorch实战】生成对抗网络GAN:生成动漫人物头像
Scala basics [introduction and installation]
【图神经网络】图分类学习研究综述[3]:图分类方法评价及未来研究方向
C language continues (3n+1) conjecture
MySQL monitoring 5
Fake divorce turns into real divorce. What about property
Pytorch中transforms的用法整理
js逆向请求参数加密:
cookie加密9
Cookie encryption 11
208. implement trie (prefix tree) - attach detailed notes
【图神经网络】图分类学习研究综述[2]:基于图神经网络的图分类
C language number prime
js Array. Five convenient applications of from()
002_ container
Varnish foundation overview 5
【MySQL 04】使用MySQL Workbench 8.0 CE 备份及恢复Linux中的MySQL数据库
Tools and life services




![[MRCTF2020]Ezpop-1|php序列化](/img/65/9b7a3ae3552d8784b0c77a1130d762.png)
![[protection mode] segment descriptor](/img/23/19b12c496da437fbf03829b7b4e3b8.jpg)


![【图神经网络】图分类学习研究综述[2]:基于图神经网络的图分类](/img/5f/b23b64eed7f28ffd92c122b6859e2d.png)
