How to get the count of columns in each column family in HBASE

196 Views Asked by At

How to get the count of columns in each column family in HBASE.

I have a table_name T, and columnfamily 'f' and 'm', have 10 columns each. how to count the number of columns in each column family.

1

There are 1 best solutions below

0
On

Since you can add any arbitrary column to any row, the only way is to scan then entire table and count the columns. HBase does not keep schema/metadata on column level.