[ 
https://issues.apache.org/jira/browse/HBASE-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12895512#action_12895512
 ] 

Jonathan Gray commented on HBASE-2473:
--------------------------------------

@Ted, you're right that Bytes can't take 0, so it is currently broken.  But 
there's no reason to not support 3 regions, we just shouldn't use the split 
method.  Something like:

{noformat}
if (numRegions == 3) {
  splitKeys = new byte [][] { startKey, endKey };
}
{noformat}

Want to file a jira?

> 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.

Reply via email to