How describe Hbase column family?

sahiljain picture sahiljain · Jan 31, 2014 · Viewed 25.3k times · Source

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.

Answer

th30z picture th30z · Jan 31, 2014

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'
 }