You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hbase.apache.org by "Misty Stanley-Jones (JIRA)" <ji...@apache.org> on 2014/12/17 05:15:13 UTC

[jira] [Created] (HBASE-12701) Document how to set the split policy on a given table

Misty Stanley-Jones created HBASE-12701:
-------------------------------------------

             Summary: Document how to set the split policy on a given table
                 Key: HBASE-12701
                 URL: https://issues.apache.org/jira/browse/HBASE-12701
             Project: HBase
          Issue Type: Task
          Components: documentation
            Reporter: Misty Stanley-Jones
            Assignee: Misty Stanley-Jones


Need to document in the ref guide how to set/change the region split policy for a single table user the API and the HBase shell as noted below as an example.
Using Java:
HTableDescriptor tableDesc = new HTableDescriptor("test");
tableDesc.setValue(HTableDescriptor.SPLIT_POLICY, ConstantSizeRegionSplitPolicy.class.getName());
tableDesc.addFamily(new HColumnDescriptor(Bytes.toBytes("cf1")));
admin.createTable(tableDesc);
Using HBase Shell:
create 'test', {METHOD => 'table_att', CONFIG => {'SPLIT_POLICY' => 'org.apache.hadoop.hbase.regionserver.ConstantSizeRegionSplitPolicy'}},
{NAME => 'cf1'}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)