You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Tale Hive <ta...@gmail.com> on 2022/02/08 11:05:58 UTC

A question about split policy

Hello.

I'm running an Hbase 2.0.2 and I have a table with regions but I'm
wondering something :
1. How can I know the split policy I have on the table ?
2. How can I get rid of regions with no data at all ?
3. How can I change the split policy if necessary ?

Thanks for your help guys !

T@le

Re: A question about split policy

Posted by Tale Hive <ta...@gmail.com>.
Hello.

I'll check that, thanks a lot for your answers.

Le mer. 9 févr. 2022 à 15:00, 张铎(Duo Zhang) <pa...@gmail.com> a
écrit :

> 1. Look at the master page of the table descriptor, or in shell, type
> 'describe <your table>'. Find SPLIT_POLICY or split.policy related text. If
> no related text, check hbase-site.xml,
> find hbase.regionserver.region.split.policy. If still no related
> information, it should be the default one, on 2.0.2 it should
> SteppingSplitPolicy
>
>
> https://github.com/apache/hbase/blob/1cfab033e779df840d5612a85277f42a6a4e8172/hbase-common/src/main/resources/hbase-default.xml#L364
>
> 2. Please check the region normalizer part in our ref guide
>
> https://hbase.apache.org/book.html#normalizer
>
> 3. In hbase shell, use the 'alter' command.
>
> alter '<your table>', SPLIT_POLICY => '<the policy you want>'
>
> Tale Hive <ta...@gmail.com> 于2022年2月8日周二 19:06写道:
>
> > Hello.
> >
> > I'm running an Hbase 2.0.2 and I have a table with regions but I'm
> > wondering something :
> > 1. How can I know the split policy I have on the table ?
> > 2. How can I get rid of regions with no data at all ?
> > 3. How can I change the split policy if necessary ?
> >
> > Thanks for your help guys !
> >
> > T@le
> >
>

Re: A question about split policy

Posted by "张铎(Duo Zhang)" <pa...@gmail.com>.
1. Look at the master page of the table descriptor, or in shell, type
'describe <your table>'. Find SPLIT_POLICY or split.policy related text. If
no related text, check hbase-site.xml,
find hbase.regionserver.region.split.policy. If still no related
information, it should be the default one, on 2.0.2 it should
SteppingSplitPolicy

https://github.com/apache/hbase/blob/1cfab033e779df840d5612a85277f42a6a4e8172/hbase-common/src/main/resources/hbase-default.xml#L364

2. Please check the region normalizer part in our ref guide

https://hbase.apache.org/book.html#normalizer

3. In hbase shell, use the 'alter' command.

alter '<your table>', SPLIT_POLICY => '<the policy you want>'

Tale Hive <ta...@gmail.com> 于2022年2月8日周二 19:06写道:

> Hello.
>
> I'm running an Hbase 2.0.2 and I have a table with regions but I'm
> wondering something :
> 1. How can I know the split policy I have on the table ?
> 2. How can I get rid of regions with no data at all ?
> 3. How can I change the split policy if necessary ?
>
> Thanks for your help guys !
>
> T@le
>