hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Misty Stanley-Jones (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HBASE-12701) Document how to set the split policy on a given table
Date Tue, 10 Feb 2015 04:06:35 GMT

     [ https://issues.apache.org/jira/browse/HBASE-12701?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Misty Stanley-Jones updated HBASE-12701:
----------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0
     Hadoop Flags: Reviewed
           Status: Resolved  (was: Patch Available)

> 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
>             Fix For: 2.0.0
>
>         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)

Mime
View raw message