[
https://issues.apache.org/jira/browse/HBASE-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895488#action_12895488
]
Ted Yu commented on HBASE-2473:
-------------------------------
In HBaseAdmin.createTable(), the following should be used:
if (numRegions < 4) {
throw new IllegalArgumentException("Must create at least four regions");
} else if(Bytes.compareTo(startKey, endKey) >= 0) {
because Bytes.split(startKey, endKey, numRegions - 3) call cannot accept last
parameter being 0.
> Add to admin create table start and end key params and desired number of
> regions
> --------------------------------------------------------------------------------
>
> Key: HBASE-2473
> URL: https://issues.apache.org/jira/browse/HBASE-2473
> Project: HBase
> Issue Type: New Feature
> Reporter: stack
> Assignee: Jonathan Gray
> Fix For: 0.90.0
>
> Attachments: HBASE-2473-v1.patch, HBASE-2473-v2.patch,
> HBASE-2473_trunk.patch
>
>
> This would be an adornment on create table that pre-creates N regions in the
> new table. It came up yesterday at the hbase hackathon3.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.