【原創】大叔經驗分享(62)kudu副本數量


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

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM