tiancheng91 / collection

笔记
https://github.com/tiancheng91/collection/issues
22 stars 1 forks source link

hbase #42

Open tiancheng91 opened 4 years ago

tiancheng91 commented 4 years ago

前缀BloomFilter

https://issues.apache.org/jira/browse/HBASE-20636

create 't1', {NAME => 'f1', BLOOMFILTER => 'ROWPREFIX_FIXED_LENGTH', CONFIGURATION => {'RowPrefixBloomFilter.prefix_length' => '10'}}
create 't1', {NAME => 'f1', BLOOMFILTER => 'ROWPREFIX_DELIMITED', CONFIGURATION => {'RowPrefixDelimitedBloomFilter.delimiter' => '#'}}

https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/regionserver/BloomType.html

预分区 https://hbase.apache.org/devapidocs/org/apache/hadoop/hbase/util/RegionSplitter.html create ‘t1’, {NAME => ‘f1’, COMPRESSION => ‘snappy’}, {NUMREGIONS => 100, SPLITALGO => ‘HexStringSplit’}

// scan.setCaching(int caching) // 默认100 scan.setBlockCache(false) // 离线计算场景禁止缓存