hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject Re: Regions and Rowkeys
Date Mon, 11 May 2015 22:52:26 GMT
You can presplit table at time of creation.
e.g. table 't1' is split into 15 regions in the following example:

hbase(main):002:0> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO =>
0 row(s) in 2.3140 seconds

The regions of the table would be spread evenly across the region servers.


On Mon, May 11, 2015 at 3:38 PM, Arun Patel <arunp.bigdata@gmail.com> wrote:

> I have some basic questions on regions.
> 1) I have a 10 node HBase cluster.  When I create a table in HBase, how
> many regions will be allocated by default?  I looked at the HBase Master UI
> and it seems regions are not allocated to all the Regionservers by
> default.  How can I allocate the regions in all Region Servers?  Basically,
>  This distributes the data in a better way If I am using a slated key. My
> requirement is to distribute the data across the cluster using salted
> keys.  But, Having few regions is a constraint?
> 2) How does the rowkey to region mapping works?  In Cassandra, we have a
> concept of assigning token range for each node.  Rowkey will be assigned to
> a node based on the token range.  How does this work in HBase?
> Regards,
> Arun

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