phoenix-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pariksheet Barapatre <pbarapa...@gmail.com>
Subject HBase Split policy
Date Sat, 20 Sep 2014 05:01:33 GMT
Hi All,

I want to understand Region Split policy used by HBase when I create table
through Phoenix.

E.g.

CREATE TABLE foo (rowkey VARCHAR PRIMARY KEY, col1 VARCHAR)
SALT_BUCKETS = 20 ;

This will create 20 pre-split regions..
Region1 - START KEY - ' ' , END_KEY - '\x01 \x00'
Region2 - START KEY - '\x01\x00' END_KEY - '\x02 \x00'
and so on..


What will be the boundaries of new region if one of pre-splitted regions
gets filled up.

Hbase documentation says, there are there are four Split policies available
-
KeyPrefixRegionSplitPolicy
ConstantSizeRegionSplitPolicy
DelimitedKeyPrefixRegionSplitPolicy
IncreasingToUpperBoundRegionSplitPolicy

Which policy will be used to create new region?


Cheers,
Pari

Mime
View raw message