You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Misty Stanley-Jones (JIRA)" <ji...@apache.org> on 2015/02/10 05:05:34 UTC
[jira] [Updated] (HBASE-12701) Document how to set the split policy
on a given table
[ https://issues.apache.org/jira/browse/HBASE-12701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Misty Stanley-Jones updated HBASE-12701:
----------------------------------------
Attachment: HBASE-12701-asciidoc.patch
Converted the work to Asciidoc and addressed [~ndimiduk]'s feedback. Since it had a +1 already, I'll commit this.
> 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
> Attachments: HBASE-12701-asciidoc.patch, HBASE-12701.patch
>
>
> 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)