当前位置:网站首页>impala高级设置之BROADCAST_BYTES_LIMIT
impala高级设置之BROADCAST_BYTES_LIMIT
2022-07-16 14:26:00 【cclovezbf】
官网地址
https://impala.apache.org/docs/build/html/topics/impala_broadcast_bytes_limit.html
Sets the limit for the size of the broadcast input based on estimated size.
The Impala planner may in rare cases make a bad choice to broadcast a large table or intermediate result and encounter performance problems due to high memory pressure. Setting this limit will make the planner pick a partition based hash join instead of broadcast and avoid such performance problems.
Type: integer
Default:
The default value is 34359738368 (32 GB). A value of 0 causes the option to be ignored.
Examples:
-- Change the limit to 16GB.
set broadcast_bytes_limit=17179869184;
-- Disable the BROADCAST_BYTES_LIMIT.
set broadcast_bytes_limit=0;这个没啥说的就是广播表的时候 限制其大小 。
这个设置有个什么好处。前面有话里说了。在极少数的情况下 impala会做出一个错误的选择,也就是我们各种join的时候,他会把一个巨大的中间表或者一个大表去广播出去,这个时候一广播用的内存就多了!!!很容易就挂了。
所以说呢 设置这个值小点可以避免这个中问题的发生的,但是小了,就会影响一些正常的查询。

可惜的是我在set里还是没找到该参数。
In Impala 2.0 and later, you can set query options directly through the JDBC and ODBC interfaces by using the SET statement. Formerly, SET was only available as a command within the impala-shell interpreter.
In Impala 2.11 and later, you can set query options for an impala-shell session by specifying one or more command-line arguments of the form --query_option=option=value. See impala-shell Configuration Options for details.
但是提到了这两句话 可能能在jdbc连接串里添加该参数
[[email protected] ~]$ impala-shell -i test-flimpala.woa.com:25003 -d default -k -Q broadcast_bytes_limit=17179869184
Starting Impala Shell using Kerberos authentication
Using service name 'impala'
Opened TCP connection to test-flimpala.woa.com:25003
Connected to test-flimpala.woa.com:25003
Server version: impalad version 3.2.0-cdh6.3.2 RELEASE (build 1bb9836227301b839a32c6bc230e35439d5984ac)
BROADCAST_BYTES_LIMIT is not supported for the impalad being connected to, ignoring.
Query: use `default`
***********************************************************************************
Welcome to the Impala shell.
(Impala Shell v3.2.0-cdh6.3.2 (1bb9836) built on Fri Nov 8 07:22:06 PST 2019)Press TAB twice to see a list of available commands.
***********************************************************************************
Query: use `default`
[test-flimpala.woa.com:25003] default> set
无果。他说通过set可以看到哪些值可以set 结果有没有。全当知识面补充了
边栏推荐
猜你喜欢

论文翻译解读:learning logic rules for reasoning on knowledge graphs【RNNLogic】

ctf-pikachu-sql

PNAs | Nannong zhangruifu group revealed a new signal recognition mechanism of microbial fertilizer functional mycorrhizal chemotaxis

C#网络应用编程,实验七: 异步编程练习
![Leetcode refers to the average value of offer II 041 sliding window [sliding window] the way of leetcode in heroding](/img/29/ea4b91cc90ca0dd0eea7e6a3d33394.png)
Leetcode refers to the average value of offer II 041 sliding window [sliding window] the way of leetcode in heroding

Huawei image xmage: seek all the images in the world, and finally see the Bodhi Heart

程序分析与优化 - 11 多分支分析

Z-Wave CTT使用方法以及测试演示

腾讯四面面经,问傻了

ZABBIX monitoring service (IV) configuration trigger
随机推荐
LeetCode 剑指Offer II 041滑动窗口的平均值[滑动窗口] HERODING的LeetCode之路
Arthas的常见用法
网络爬虫技术创建属于自己的有道词典
STL string
Z-Wave CTT使用方法以及测试演示
【Ucos-III源码分析】——内存管理机制
華為影像XMAGE:求盡世間像,終見菩提心
【C#网络应用编程】实验3:进程管理练习
rman异机恢复后,报错ora-01017
【golang】cannot unmarshal xxx “ into Go struct field xxx of type xxx
1.创建Prism项目
2022 latest Tianjin Construction Safety Officer simulation question bank and answers
HALCON联合C#检测表面缺陷——ROI交互(三)(和图片同步缩放裁剪等功能)
(Note)七彩虹30系列显卡——《一键超频》按键
MySQL 变量、流程控制与游标
云原生(三十五) | Prometheus入门和安装
web开发从入门到精通一(详细)
Anaconda 的认识以及和它相关的一些编辑器的简单介绍
A game research and development company in Shenzhen installed monitoring for each station. Netizen: it's comparable to imprisonment!
MySQL 触发器