HBase练习-4

#alter
hbase(main):038:0> create 't1','f1'
0 row(s) in 3.1330 seconds

#增加列族f2
hbase(main):039:0> alter 't1',NAME=>'f2'

#增加列族后的结果
hbase(main):040:0> describe 't1'
                                                         
{NAME => 'f1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE
 => '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => 'FOREVER
', KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCA
CHE => 'true'}                                                                       
{NAME => 'f2', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE
 => '0', COMPRESSION => 'NONE', VERSIONS => '1', TTL => 'FOREVER', MIN_VERSIONS => '0
', KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCA
CHE => 'true'}                                                                       

#删除列族
hbase(main):041:0> alter 't1',NAME=>'f2',METHOD=>'delete'

#删除列族f2后的表格
hbase(main):042:0> describe 't1'
                                                        
{NAME => 'f1', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE
 => '0', VERSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => 'FOREVER
', KEEP_DELETED_CELLS => 'FALSE', BLOCKSIZE => '65536', IN_MEMORY => 'false', BLOCKCA
CHE => 'true'}                                                                       


#设置列族f1最大128MB
hbase(main):043:0> alter 't1',METHOD=>'table_att',MAX_FILESIZE=>'134217728'

 

你可能感兴趣的:(HBase)