Skip to content

HBase 建表:

单个列族:

shell
create  'nat_person_card_info', {NAME => 'f', VERSIONS => '1', COMPRESSION => 'SNAPPY'}

多个列族:

sql
create  'identity', 
{NAME => 'info', VERSIONS => '1', COMPRESSION => 'SNAPPY'}, 
{NAME => 'mtch', COMPRESSION => 'SNAPPY', VERSIONS => '1'}, 
{NAME => 'tags', VERSIONS => '1', COMPRESSION => 'SNAPPY'}

scan limit:

scan 'dsp_test_data_tbl', {LIMIT=>100}

drop table:

disable 'dsp_test_data_tbl'
drop 'dsp_test_data_tbl'