You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Shushant Arora <sh...@gmail.com> on 2016/05/15 05:46:05 UTC

hbase block and columnfamily of a row

can a hbase table with single column family hve its row spawned on
 multiple blocks in a same HFile ?

Suppose there is only one hfile in that case is it possile a column family
having 5-6 columns is spawned on multiple blocks ? or its always block is
closed at max( 64k default or when all columns of a columnfamily for a
single row fits in that block).

Thanks!

Re: hbase block and columnfamily of a row

Posted by Stack <st...@duboce.net>.
On Sat, May 14, 2016 at 10:46 PM, Shushant Arora <sh...@gmail.com>
wrote:

> can a hbase table with single column family hve its row spawned on
>  multiple blocks in a same HFile ?
>
>
Yes. A row could have many entries in it.. too many for a single block.



> Suppose there is only one hfile in that case is it possile a column family
> having 5-6 columns is spawned on multiple blocks ? or its always block is
> closed at max( 64k default or when all columns of a columnfamily for a
> single row fits in that block).
>
>
It is possible. It is usual in fact.

At an extreme a single entry/Cell could fill a whole block if it were 64k
or bigger in size. A single Cell will never span blocks.

A block is completed as soon as it exceeds the configured block size.
Blocks are rarely exactly 64k in size.

St.Ack


> Thanks!
>