Re: check if column family has any data

2018-11-13 Thread Jingyun Tian
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

check if column family has any data

2018-11-13 Thread Antonio Si
Hi, Is there an easy way to check if a column family of a hbase table has any data? I try something like "scan '', { LIMIT => 10, FILTER=>"FamilyFilter(=, 'binary:')" } 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