【原创】大叔经验分享(62)kudu副本数量
2024-09-06 22:24:49
kudu的副本数量是在表上设置,可以通过命令查看
# sudo -u kudu kudu cluster ksck $master
...
Summary by table
Name | RF | Status | Total Tablets | Healthy | Recovering | Under-replicated | Unavailable
----------------------------------------------------------+----+---------+---------------+---------+------------+------------------+-------------
impala::test_db.test_table | 3 | HEALTHY | 4 | 4 | 0 | 0 | 0
...
其中RF即replication factor;
副本数量只能在创建表时指定,创建后不能修改,并且副本数量必须为奇数
By default, Kudu tables created through Impala use a tablet replication factor of 3. To specify the replication factor for a Kudu table, add a TBLPROPERTIES clause to the CREATE TABLE statement as shown below where n is the replication factor you want to use:
TBLPROPERTIES ('kudu.num_tablet_replicas' = 'n')
A replication factor must be an odd number.
Changing the kudu.num_tablet_replicas table property using ALTER TABLE currently has no effect.
参考:
https://kudu.apache.org/docs/kudu_impala_integration.html
最新文章
- python 高级之面向对象初级
- 获得appstore里面app的最新的版本信息,进行版本更新
- 从零自学Hadoop(02):环境准备
- JSON漫谈
- 利用Apperance协议定义View的全局外观
- 努比亚 Z5 mini刷机包 omni4.4.2改动V4.0 自用版 精简 MIUI特效
- python在windows通过安装模块错误
- idea将maven项目打包成war包的方式,以及使用war包
- Linux指令--性能监控和优化命令相关指令
- synchronized与Lock的区别
- EditTextUtil 监听输入字数
- ios自带的返回按键,点击不刷新页面
- maven无法下依赖jar文件的解决方案
- web后台工作流程
- 自学华为IoT物联网_01 物联网概述
- [leetcode-108,109] 将有序数组转换为二叉搜索树
- 20165235 实验二Java面向对象程序设计
- Ubuntu fcitx CPU占用率很高解决方法
- Getting Started with Processing 第五章的总结
- Chrome程序及数据位置变更到非系统盘