HBASE-16076 Cannot configure split policy in HBase shell

This commit is contained in:
chenheng 2016-07-18 10:28:05 +08:00
parent a8dfd8c436
commit cf0f4f72d9
2 changed files with 2 additions and 2 deletions

View File

@ -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,

View File

@ -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