You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Karthik Palanisamy (Jira)" <ji...@apache.org> on 2019/12/05 00:36:00 UTC
[jira] [Commented] (HBASE-23360) [CLI] Fix help command "set_quota"
[ https://issues.apache.org/jira/browse/HBASE-23360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16988330#comment-16988330 ]
Karthik Palanisamy commented on HBASE-23360:
--------------------------------------------
Users may not aware of how to unset throttle because we have not provided any info about THROTTLE_TYPE. I think we should give all THROTTLE_TYPE examples in help command.
{code:java}
Unthrottle number of requests:
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_NUMBER, USER => 'u1', LIMIT => 'NONE'
Unthrottle number of read requests:
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => READ_NUMBER, USER => 'u1', LIMIT => NONE
Unthrottle number of write requests:
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE_NUMBER, USER => 'u1', LIMIT => NONE
Unthrottle data size:
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_SIZE, USER => 'u1', LIMIT => 'NONE'
Unthrottle read data size:
hbase> set_quota TYPE => THROTTLE, USER => 'u1', THROTTLE_TYPE => READ_SIZE, LIMIT => 'NONE'
Unthrottle write data size:
hbase> set_quota TYPE => THROTTLE, USER => 'u1', THROTTLE_TYPE => WRITE_SIZE, LIMIT => 'NONE'
Unthrottle capacity unit:
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => REQUEST_CAPACITY_UNIT, USER => 'u1', LIMIT => 'NONE'
Unthrottle read capacity unit:
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => READ_CAPACITY_UNIT, USER => 'u1', LIMIT => 'NONE'
Unthrottle write capacity unit:
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE_CAPACITY_UNIT, USER => 'u1', LIMIT => 'NONE'
{code}
> [CLI] Fix help command "set_quota"
> ----------------------------------
>
> Key: HBASE-23360
> URL: https://issues.apache.org/jira/browse/HBASE-23360
> Project: HBase
> Issue Type: Bug
> Components: shell
> Affects Versions: 3.0.0
> Reporter: Karthik Palanisamy
> Assignee: Karthik Palanisamy
> Priority: Minor
>
> To remove a quota by throttle_type,
> {code:java}
> hbase> help "set_quota"
> ...
> hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE, USER => 'u1', LIMIT => NONE
> ....
> {code}
> but the actual command should be,
> {code:java}
> hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE_NUMBER, USER => 'u1', LIMIT => NONE{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)