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

Sakthi commented on HBASE-21631:
--------------------------------

The output was verified using shell:
{noformat}
hbase(main):006:0> set_quota TYPE => SPACE, TABLE => 't2', LIMIT => '3G', 
POLICY => NO_WRITES
Took 0.0102 seconds
hbase(main):007:0> list_quotas
OWNER                         QUOTAS
 TABLE => t2                  TYPE => SPACE, TABLE => t2, LIMIT => 3G, 
VIOLATION_POLICY => NO_WRITES
1 row(s)
Took 0.0253 seconds
hbase(main):008:0> set_quota TYPE => SPACE, TABLE => 't2', LIMIT => '5K', 
POLICY => NO_WRITES
Took 0.0089 seconds
hbase(main):009:0> list_quotas
OWNER                         QUOTAS
 TABLE => t2                  TYPE => SPACE, TABLE => t2, LIMIT => 5K, 
VIOLATION_POLICY => NO_WRITES
1 row(s)
Took 0.0355 seconds
{noformat}
 

> list_quotas should print human readable values for LIMIT
> --------------------------------------------------------
>
>                 Key: HBASE-21631
>                 URL: https://issues.apache.org/jira/browse/HBASE-21631
>             Project: HBase
>          Issue Type: Improvement
>          Components: shell
>            Reporter: Sakthi
>            Assignee: Sakthi
>            Priority: Minor
>         Attachments: hbase-21631.master.001.patch
>
>
> The list_quotas command should print human readable values for LIMIT. For 
> e.g. In the below case, printing LIMIT => 3G is better than printing LIMIT => 
> 3221225472
> {noformat}
> hbase(main):006:0> set_quota TYPE => SPACE, TABLE => 't2', LIMIT => '3G', 
> POLICY => NO_WRITES
> Took 0.0132 seconds
> hbase(main):007:0> list_quotas
> OWNER                          QUOTAS
>  TABLE => t2                   TYPE => SPACE, TABLE => t2, LIMIT => 
> 3221225472, VIOLATION_POLICY => NO_WRITES
> 1 row(s)
> Took 0.0281 seconds
>  {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to