[
https://issues.apache.org/jira/browse/HBASE-25766?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Toshihiro Suzuki updated HBASE-25766:
-------------------------------------
Release Note:
After HBASE-25766, we can specify a split point restriction, "KeyPrefix" or
"DelimitedKeyPrefix", to a table with
"hbase.regionserver.region.split_point_restriction.type" property. The
"KeyPrefix" split point restriction groups rows by a prefix of the row-key. And
the "DelimitedKeyPrefix" split point restriction groups rows by a prefix of the
row-key with a delimiter.
For example:
```
# Create a table with a "KeyPrefix" split point restriction, where the prefix
length is 2 bytes
create 'tbl1', 'fam', {CONFIGURATION =>
{'hbase.regionserver.region.split_point_restriction.type' => 'KeyPrefix',
'hbase.regionserver.region.split_point_restriction.prefix_length' => '2'}}
# Create a table with a "DelimitedKeyPrefix" split point restriction, where the
delimiter is a comma (,)
create 'tbl2', 'fam', {CONFIGURATION =>
{'hbase.regionserver.region.split_point_restriction.type' =>
'DelimitedKeyPrefix',
'hbase.regionserver.region.split_point_restriction.delimiter' => ','}}
```
Instead of specifying a split point restriction to a table directly, we can
also set the properties in hbase-site.xml. In this case, the specified split
point restriction is applied for all the tables.
> Introduce RegionSplitPointRestriction that restricts the pattern of the split
> point
> -----------------------------------------------------------------------------------
>
> Key: HBASE-25766
> URL: https://issues.apache.org/jira/browse/HBASE-25766
> Project: HBase
> Issue Type: Improvement
> Reporter: Toshihiro Suzuki
> Assignee: Toshihiro Suzuki
> Priority: Major
> Fix For: 3.0.0-alpha-1, 2.4.3
>
>
> As discussed in HBASE-25706, we can introduce RegionSplitPointRestriction
> that restricts the pattern of the split point.
> See the following comment for the details:
> https://issues.apache.org/jira/browse/HBASE-25706?focusedCommentId=17310190&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#comment-17310190
> CC: [~zhangduo] [~stack]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)