hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: some questions about hbase pre-split
Date Mon, 01 Aug 2016 23:05:18 GMT
For #1, please take a look at split.rb :

Split entire table or pass a region to split individual region.  With the
second parameter, you can specify an explicit split key for the region.
    split 'tableName'
    split 'namespace:tableName'
    split 'regionName' # format: 'tableName,startKey,id'
    split 'tableName', 'splitKey'
    split 'regionName', 'splitKey'

For #2, hbase will redistribute the data (of parent region into daughter


On Mon, Aug 1, 2016 at 3:59 PM, Baichuan YANG <ybcabcd@gmail.com> wrote:

> Hi all,
> Currently I am working on a data simulation project on which I need to
> store huge amount of data into one HBase table. I plan to pre-split the
> regions and disable auto-split, and here are my concerns;
> 1. Assume that originally I pre-split the table into 1000 regions. In the
> future if we need to split the table to 2000 regions or more, how to
> archive that (or just tell me what is the hbase shell command or Java
> APIs)?
> 2. If I re-split the table as I describe above, how HBase deal with the
> data that have been already saved into table? Will HBase automatically
> redistribute the data? Or I have to reload the data again?
> Regards,
> BC Y

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message