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>']})
| Parameter | Description |
|---|---|
namespace_name |
A namespace name |
table_name |
A table name |
region_server_name |
A Region Server name |
| 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