Uploaded image for project: 'HBase'
  1. HBase
  2. HBASE-21768

list_quota_table_sizes/list_quota_snapshots should print human readable values for size

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • shell

    Description

      +underlined text+Using space quota, list_quota_table_sizes/list_quota_snapshots should print human readable values for size.Keep the old implementation by default, add HUMANREADABLE constant.

      hbase(main):001:0> list_quota_table_sizes
      TABLE SIZE 
      TestTable 110399 
      t1 5211 
      
      hbase(main):002:0> list_quota_snapshots
      TABLE USAGE LIMIT IN_VIOLATION POLICY
      t1 5211 1073741824 false None
      

      Using HUMANREADABLE :

      hbase(main):001:0> list_quota_snapshots({HUMANREADABLE=>'true'})
       TABLE USAGE LIMIT IN_VIOLATION POLICY
       TestTable 20G 2T false None
      
      

      Attachments

        1. HBASE-21768.master.0001.patch
          3 kB
          xuqinya
        2. HBASE-21768.master.0002.patch
          5 kB
          xuqinya
        3. HBASE-21768.master.0003.patch
          6 kB
          xuqinya
        4. HBASE-21768.master.0004.patch
          9 kB
          xuqinya

        Issue Links

          Activity

            People

              xu qinya xuqinya
              xu qinya xuqinya
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: