hbase-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Josh Elser (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HBASE-17981) Roll list_quota_violations into list_quota_snapshots
Date Tue, 02 May 2017 16:40:04 GMT

    [ https://issues.apache.org/jira/browse/HBASE-17981?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15993233#comment-15993233
] 

Josh Elser commented on HBASE-17981:
------------------------------------

Some updated output from the shell:

{noformat}
hbase(main):003:0> help 'list_quota_snapshots'
Lists the current space quota snapshots with optional selection criteria.
Snapshots encapsulate relevant information to space quotas such as space
use, configured limits, and quota violation details. This command is
useful for understanding the current state of a cluster with space quotas.

By default, this command will read all snapshots stored in the system from
the hbase:quota table. A table name or namespace can be provided to filter
the snapshots returned. RegionServers maintain a copy of snapshots, refreshing
at a regular interval; by providing a RegionServer option, snapshots will
be retreived from that RegionServer instead of the quota table.

For example:

    hbase> list_quota_snapshots
    hbase> list_quota_snapshots({TABLE => 'table1'})
    hbase> list_quota_snapshots({NAMESPACE => 'org1'})
    hbase> list_quota_snapshots({REGIONSERVER => 'server1.domain,16020,1483482894742'})
    hbase> list_quota_snapshots({NAMESPACE => 'org1', REGIONSERVER => 'server1.domain,16020,1483482894742'})
hbase(main):004:0> list_quota_snapshots({TABLE=>'t1'})
 TABLE USAGE LIMIT IN_VIOLATION POLICY
 t1 2351016 5368709120 false None
1 row(s)
Took 0.0070 seconds
hbase(main):005:0> list_quota_snapshots({NAMESPACE=>'joshns'})
 TABLE USAGE LIMIT IN_VIOLATION POLICY
 joshns:quota3 3226791378 3221225472 true NO_WRITES
 joshns:quota4 3226791378 3221225472 true NO_WRITES
 joshns:quota1 3226791378 3221225472 true NO_WRITES
 joshns:quota2 3226791378 3221225472 true NO_WRITES
4 row(s)
Took 0.0080 seconds
hbase(main):008:0> list_quota_snapshots({NAMESPACE=>'joshns', REGIONSERVER=>'hw10447.local,16201,1493742993404'})
 TABLE USAGE LIMIT IN_VIOLATION POLICY
 joshns:quota3 3226791378 3221225472 true NO_WRITES
 joshns:quota4 3226791378 3221225472 true NO_WRITES
 joshns:quota1 3226791378 3221225472 true NO_WRITES
 joshns:quota2 3226791378 3221225472 true NO_WRITES
4 row(s)
Took 0.0230 seconds
{noformat}

The only strange thing here is that we need to provide the parens for the method arguments,
otherwise Ruby thinks that we're providing a block (and not a hash).

> Roll list_quota_violations into list_quota_snapshots
> ----------------------------------------------------
>
>                 Key: HBASE-17981
>                 URL: https://issues.apache.org/jira/browse/HBASE-17981
>             Project: HBase
>          Issue Type: Sub-task
>            Reporter: Josh Elser
>            Assignee: Josh Elser
>             Fix For: HBASE-16961
>
>         Attachments: HBASE-17981.001.HBASE-16961.patch
>
>
> [~apurtell] had the good suggestion on the parent issue to consolidate the functionality
of these two commands into one, with uniform output and some filtering options.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message