list_quota_snapshots

Definition

Returns information about tables with defined space quotas: current space usage, configured limits, quota violation details. By default, the command reads this data from the snapshots stored in the system table hbase:quota. As Region Servers maintain a copy of these snapshots (refreshing at a regular interval), you can use the input parameter REGIONSERVER — to retrieve information from the particular Region Server instead of hbase:quota.

A table name or namespace can be used to filter the command output.

Usage

list_quota_snapshots({[TABLE => '<table_name>'][,
                       NAMESPACE => '<namespace_name>'][,
                       REGIONSERVER => '<region_server_name>']})
Arguments
Parameter Description

namespace_name

A namespace name

table_name

A table name

region_server_name

A Region Server name

Output parameters
Parameter Description

TABLE

A table name

USAGE

The current space usage (in bytes)

LIMIT

The defined space quota (in bytes)

IN_VIOLATION

Whether or not violation is fixed

POLICY

The policy running in the case of violation

Examples

Listing without any parameters

hbase(main):095:0> list_quota_snapshots
 TABLE USAGE LIMIT IN_VIOLATION POLICY
 temp1 9834 1073741824 false None
1 row(s)
Took 0.0103 seconds

Listing for the specified table

hbase(main):100:0> list_quota_snapshots({TABLE => 'temp1'})
 TABLE USAGE LIMIT IN_VIOLATION POLICY
 temp1 9834 1073741824 false None
1 row(s)
Took 0.0049 seconds

Listing for the specified namespace

hbase(main):102:0> list_quota_snapshots({NAMESPACE => 'default'})
 TABLE USAGE LIMIT IN_VIOLATION POLICY
 temp1 9834 1073741824 false None
1 row(s)
Took 0.0052 seconds

Requesting information from the specified Region Server

hbase(main):104:0> list_quota_snapshots({REGIONSERVER => 'bds-adh-1.ru-central1.internal,16020,1637744748523'})
 TABLE USAGE LIMIT IN_VIOLATION POLICY
 temp1 9834 1073741824 false None
1 row(s)
Took 0.0224 seconds
Found a mistake? Seleсt text and press Ctrl+Enter to report it