如何描述Hbase列家族? [英] How describe Hbase column family?

查看:242
本文介绍了如何描述Hbase列家族?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一个命令来描述HBase Shell中表内的columnfamily。如果您使用 describe ,那么您可以使用 $ c $> cbase命令从 hbase shell
,您将获得每个列族的信息。
目前,无法过滤一个家庭。



示例:

  HBase的(主):003:0>描述'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'
}


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.

解决方案

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

这篇关于如何描述Hbase列家族?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆