hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Misty Stanley-Jones (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HBASE-12701) Document how to set the split policy on a given table
Date Wed, 17 Dec 2014 04:15:13 GMT
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)

Mime
View raw message