From cf0f4f72d989a86d062010773874d98870ad2e59 Mon Sep 17 00:00:00 2001 From: chenheng Date: Mon, 18 Jul 2016 10:28:05 +0800 Subject: [PATCH] HBASE-16076 Cannot configure split policy in HBase shell --- .../java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java | 1 + src/main/asciidoc/_chapters/architecture.adoc | 3 +-- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java index 66968e05cb3..222e1468c8b 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/io/hfile/HFileBlockIndex.java @@ -270,6 +270,7 @@ public class HFileBlockIndex { public Cell getRootBlockKey(int i) { return blockKeys[i]; } + @Override public BlockWithScanInfo loadDataBlockWithScanInfo(Cell key, HFileBlock currentBlock, boolean cacheBlocks, boolean pread, boolean isCompaction, diff --git a/src/main/asciidoc/_chapters/architecture.adoc b/src/main/asciidoc/_chapters/architecture.adoc index 4b88665c706..cfdd638f7f2 100644 --- a/src/main/asciidoc/_chapters/architecture.adoc +++ b/src/main/asciidoc/_chapters/architecture.adoc @@ -1412,8 +1412,7 @@ admin.createTable(tableDesc); [source] .Configuring the Split Policy On a Table Using HBase Shell ---- -hbase> create 'test', {METHOD => 'table_att', CONFIG => {'SPLIT_POLICY' => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}}, -{NAME => 'cf1'} +hbase> create 'test', {METADATA => {'SPLIT_POLICY' => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}},{NAME => 'cf1'} ---- The default split policy can be overwritten using a custom