You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "stack (JIRA)" <ji...@apache.org> on 2016/01/17 01:42:39 UTC

[jira] [Updated] (HBASE-14367) Add normalization support to shell

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

stack updated HBASE-14367:
--------------------------
    Release Note: 
This patch adds shell support for region normalizer (see HBASE-13103).

3 commands have been added to hbase shell 'tools' command group (modeled on how the balancer works):

 - 'normalizer_enabled' checks whether region normalizer is turned on
 - 'normalizer_switch' allows user to turn normalizer on and off
 - 'normalize' runs region normalizer if it's turned on.

Also 'alter' command has been extended to allow user to enable/disable region normalization per table (disabled by default). Use it as 

alter 'testtable', {NORMALIZATION_MODE => 'true'}

Here is the help for the normalize command:

{code}
hbase(main):008:0> help 'normalize'
Trigger region normalizer for all tables which have NORMALIZATION_MODE flag set. Returns true
 if normalizer ran successfully, false otherwise. Note that this command has no effect
 if region normalizer is disabled (make sure it's turned on using 'normalizer_switch' command).

 Examples:

   hbase> normalize
{code}

  was:
This patch adds shell support for region normalizer.

3 commands have been added to hbase shell 'tools' command group:

 - 'normalizer_enabled' checks whether region normalizer is turned on
 - 'normalizer_switch' allows user to turn normalizer on and off
 - 'normalize' runs region normalizer if it's turned on.

Also 'ater' command has been extended to allow user to enable/disable region normalization per table (disabled by default). Use it as 

alter 'testtable', {NORMALIZATION_ENABLED => 'true'}


> Add normalization support to shell
> ----------------------------------
>
>                 Key: HBASE-14367
>                 URL: https://issues.apache.org/jira/browse/HBASE-14367
>             Project: HBase
>          Issue Type: Bug
>          Components: Balancer, shell
>    Affects Versions: 1.1.2
>            Reporter: Lars George
>            Assignee: Mikhail Antonov
>             Fix For: 2.0.0, 1.2.0, 1.3.0
>
>         Attachments: HBASE-14367-branch-1.2.v1.patch, HBASE-14367-branch-1.2.v2.patch, HBASE-14367-branch-1.2.v3.patch, HBASE-14367-branch-1.v1.patch, HBASE-14367-v1.patch, HBASE-14367.patch
>
>
> https://issues.apache.org/jira/browse/HBASE-13103 adds support for setting a normalization flag per {{HTableDescriptor}}, along with the server side chore to do the work.
> What is lacking is to easily set this from the shell, right now you need to use the Java API to modify the descriptor. This issue is to add the flag as a known attribute key and/or other means to toggle this per table.



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