hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jingyun Tian <tianjy1...@gmail.com>
Subject Re: check if column family has any data
Date Wed, 14 Nov 2018 03:17:54 GMT
Hi,
The problem of your scan is that filter will grab all data then do the
filter things. Thus it's very slow.
You may try to specify the column family when you scan, like
"scan 't1', { LIMIT => 10, COLUMNS => ['c1', 'c2'], CACHE_BLOCKS => false}".

Sincerely,
Jingyun Tian

On Wed, Nov 14, 2018 at 5:43 AM Antonio Si <antonio.si@gmail.com> wrote:

> Hi,
>
> Is there an easy way to check if a column family of a hbase table has any
> data?
>
> I try something like "scan '<table name>', { LIMIT => 10,
> FILTER=>"FamilyFilter(=, 'binary:<family name>')" } in hbase shell and it
> timeout. I guess it's because my table
> has 15TB of data. So, I am guessing that particular family has no data, but
> I need a way to confirm that.
>
> Any pointers would be appreciated.
>
> Thanks.
>
> Antonio.
>

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