[
https://issues.apache.org/jira/browse/HBASE-2473?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Jonathan Gray updated HBASE-2473:
---------------------------------
Attachment: HBASE-2473-v1.patch
Adds two new client methods to HBaseAdmin:
createTable(HTableDescriptor desc, byte [][] splitKeys)
createTable(HTableDescriptor desc, byte [] startKey, byte [] endKey, int
numRegions)
Check javadoc for explanations. If something is not clear let me know. The
second method determines split keys and calls the first method.
HMasterInterface is also changed to take splitKeys. If splitKeys is null or 0
length then the usual, single region table will be created. The original
createTable(desc) method remains in HBA of course.
Adds a big new unit test to TestHBaseAdmin. Also added an additional unit test
to TestBytes for the splitting algorithm which uncovered a small off-by-one bug
which is also fixed in this patch.
Please review.
> 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: Hadoop HBase
> Issue Type: New Feature
> Reporter: stack
> Assignee: Jonathan Gray
> Fix For: 0.20.5, 0.21.0
>
> Attachments: HBASE-2473-v1.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.