Skip to content

Commit

Permalink
HBASE-23360 [CLI] Fix help command 'set_quota' for removing limits (#896
Browse files Browse the repository at this point in the history
)

Differs from original by removing Capacity Unit examples since that feature isn't on this branch.

(cherry picked from commit a553b78)
(cherry picked from commit 2a1efe0)
  • Loading branch information
Karthik Palanisamy authored and busbey committed Dec 11, 2019
1 parent 80c3581 commit 84c0a90
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion hbase-shell/src/main/ruby/shell/commands/set_quota.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,21 @@ def help
hbase> set_quota TYPE => THROTTLE, USER => 'u1', LIMIT => '10req/sec'
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => READ, USER => 'u1', LIMIT => '10req/sec'
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
hbase> set_quota TYPE => THROTTLE, USER => 'u1', LIMIT => '10M/sec'
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE, USER => 'u1', LIMIT => '10M/sec'
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'
hbase> set_quota TYPE => THROTTLE, USER => 'u1', LIMIT => '10CU/sec'
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE, USER => 'u1', LIMIT => '10CU/sec'
Expand All @@ -53,7 +65,6 @@ def help
hbase> set_quota TYPE => THROTTLE, TABLE => 't1', LIMIT => '10M/sec'
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE, TABLE => 't1', LIMIT => '10M/sec'
hbase> set_quota TYPE => THROTTLE, USER => 'u1', LIMIT => NONE
hbase> set_quota TYPE => THROTTLE, THROTTLE_TYPE => WRITE, USER => 'u1', LIMIT => NONE
hbase> set_quota USER => 'u1', GLOBAL_BYPASS => true
EOF
Expand Down

0 comments on commit 84c0a90

Please sign in to comment.