更好的顺序扫描,需要更大的数据块
create "stu",{NAME => "cf",BLOCKSIZE =>"65536"}
create "stu",{NAME => "cf",BLOCKCACHE =>"false"}
create "stu",{NAME => "cf",IN_MEMORY =>"true"}
create "stu",{NAME => "cf",BLOOMFILTER =>"ROWCOL"}
create "stu",{NAME => "cf",TTL =>"18000"}
create "stu",{NAME => "cf",COMPRESSION =>"GZIP"}
单元时间版本:
默认维护一个时间版本
create "stu",{NAME =>"cf",VERSIONS =>5}
flush ' waln_log' flush'waln_log,1429239562047.14d5384d50968c26ec54d7d6e3ac10fc. '
查看Hlog:
hbase hlog /hbase/WALs/crxy188,60020,1429957577908/crxy188%2C60020%2C1429957577908.1429957583305
查看HFile:
hbase hfile -s -f /hbase/data/default/student/a080a634060242b87f263d1ead83172f/cf/a88b726e0cb04bc695c9d306e7827d59
hbase-site.xml <property> <name>hbase.hregion.majorcompaction</name> <value>0</value> </property>
<property> <name>hbase.hregion.max.filesize</name> <value>10734182400</value> </property>
compact ' waln_log'
major_compact 'waln_log',1429239562047.14d5384d50968c26ec54d7d6e3ac10fc.
split 'waln_log,,1429239562047.14d5384d50968c26ec54d7d6e3ac10fc. '
启用负载均衡
balance_switch true
balancer
create 'tb_splits', {NAME => 'cf', VERSIONS=> 3},{SPLITS => ['a','b','c']} hBaseAdmin.createTable(tableDescriptor, Bytes.toBytes(0L), Bytes.toBytes(100L), 10);
hbase org.apache.hadoop.hbase.regionserver.wal.HLog --split hdfs:crxy188:8020/hbase/.log/