hbase修改表Bloomfilter

来源:互联网 发布:shadowrocket linux 编辑:程序博客网 时间:2024/06/07 04:51

HBASE版本:0.94

问题:修改表结构打开Bloomfilter

Bloomfilter三种类型 NONE ROW ROWCOL


hbase(main):001:0> create 'test',{NAME => 'info',VERSIONS => 1}

SLF4J: Class path contains multiple SLF4J bindings.
SLF4J: Found binding in [jar:file:/export/hbase/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: Found binding in [jar:file:/export/hadoop/share/hadoop/common/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class]
SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation.
0 row(s) in 1.8240 seconds


=> Hbase::Table - test
hbase(main):002:0> describe 'test'
DESCRIPTION                                                                                                  ENABLED                                                    
 'test', {NAME => 'info', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'NONE', REPLICATION_SCOPE => '0', VE true                                                       
 RSIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', KEEP_DELETED_CELLS => 'fals                                                            
 e', BLOCKSIZE => '65536', IN_MEMORY => 'false', ENCODE_ON_DISK => 'true', BLOCKCACHE => 'true'}                                                                        
1 row(s) in 0.0630 seconds


hbase(main):003:0> disable 'test'
0 row(s) in 1.3430 seconds


hbase(main):004:0> alter 'test',{NAME=>'info',BLOOMFILTER => 'ROW'}
Updating all regions with the new schema...
1/1 regions updated.
Done.
0 row(s) in 1.3020 seconds


hbase(main):005:0>  enable 'test'
0 row(s) in 1.2350 seconds


hbase(main):006:0> describe 'test'
DESCRIPTION                                                                                                  ENABLED                                                    
 'test', {NAME => 'info', DATA_BLOCK_ENCODING => 'NONE', BLOOMFILTER => 'ROW', REPLICATION_SCOPE => '0', VER true                                                       
 SIONS => '1', COMPRESSION => 'NONE', MIN_VERSIONS => '0', TTL => '2147483647', KEEP_DELETED_CELLS => 'false                                                            
 ', BLOCKSIZE => '65536', IN_MEMORY => 'false', ENCODE_ON_DISK => 'true', BLOCKCACHE => 'true'}                                                                         
1 row(s) in 0.0770 seconds


hbase(main):007:0>
0 0
原创粉丝点击