Search code examples
hbase

How describe Hbase column family?


I am looking for a command which describes the columnfamily inside the table from the HBase Shell. I could not get any command to try this.


Solution

  • If you use the describe command from the hbase shell you'll get the information for each column family. Currently, there is no way to filter on a single family.

    Example:

    hbase(main):003:0> describe 'TABLE_NAME'
     'TABLE_NAME',
     {NAME => 'FAMILY_NAME',
      DATA_BLOCK_ENCODING => 'NONE',
      BLOOMFILTER => 'ROW',
      REPLICATION_ true                                          
      SCOPE => '0',
      VERSIONS => '1',
      COMPRESSION => 'NONE',
      MIN_VERSIONS => '0', TTL => '2147483647',
      KEEP_DELETED_CELLS => 'false',
      BLOCKSIZE => '65536',
      IN_MEMORY => 'false',
      BLOCKCACHE => 'true'
     }