当前位置:网站首页>记录生产的一次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的参数往最大化设置。
边栏推荐
- 001_ layout
- Thinking carefully and fearfully: a software can be transmitted online to monitor whether employees want to "run away"
- C语言 害死人不偿命的(3n+1)猜想
- The national industrial information security development research center issued the report on industrial information security situation in 2021
- Chiffrement des cookies 8
- Varnish foundation overview 6
- 【二叉树】最大二叉树 II
- C语言 数素数
- Scala basics [introduction and installation]
- 【MySQL 06】linux + Docker容器环境中备份和还原MySQL数据库
猜你喜欢
![Scala basics [introduction and installation]](/img/c5/9e62070719e1e0db29b0e44b0f0bc1.png)
Scala basics [introduction and installation]

Scala基础【入门及安装】

C语言 换个格式输出整数

The (3n+1) conjecture that C language kills people without paying for their lives

Derivation of univariate polynomial in C language

js逆向请求参数加密:

Thinking carefully and fearfully: a software can be transmitted online to monitor whether employees want to "run away"

AI landing manufacturing: intelligent robots should have these four abilities
![[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions](/img/b1/2afa73a14b2f41b7a65c4c2d261e6a.png)
[graph neural network] summary of graph classification study [3]: evaluation of graph classification methods and future research directions

Cookie encryption 10
随机推荐
谁再用Redis过期监听实现关闭订单,立马滚蛋!
Cookie encryption 13
AI landing manufacturing: intelligent robots should have these four abilities
【二叉树】最大二叉树 II
Cookie加密10
The national industrial information security development research center issued the report on industrial information security situation in 2021
Design and implementation of spark offline development framework
【机器学习Q&A】数据抽样和模型验证方法、超参数调优以及过拟合和欠拟合问题
Pytorch模型训练到哪里找预训练模型?
假離婚變成真離婚,財產怎麼辦
Where can I find a pre training model for pytoch model training?
Add a second network card (network interface NIC) for the virtual machine in azure portal in 2 minutes
(1) Basic learning - figure out the difference between pin, pad, port, IO and net
[machine learning Q & A] accuracy, accuracy, recall, ROC and AUC
Matlab 2012a 绘制带箭头的线段
【机器学习Q&A】余弦相似度、余弦距离、欧式距离以及机器学习中距离的含义
006_ radio
What are the payment and distribution systems?
Embedded test template
Varnish foundation overview 6