You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Xiang Li (JIRA)" <ji...@apache.org> on 2019/02/09 16:22:00 UTC

[jira] [Comment Edited] (HBASE-21478) Make table sorted when displaying rsgroup info in shell and master web UI

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

Xiang Li edited comment on HBASE-21478 at 2/9/19 4:21 PM:
----------------------------------------------------------

Without the patch:
{code}
hbase(main):004:0> list_rsgroups
NAME                                                                 SERVER / TABLE                                                                                                                                                                                            
 default                                                             server ip-10-23-10-9.ec2.internal:16020                                                                                                                                                                   
                                                                     table hbase:meta                                                                                                                                                                                          
                                                                     table hbase:rsgroup                                                                                                                                                                                       
                                                                     table t1                                                                                                                                                                                                  
                                                                     table ns1:t2                                                                                                                                                                                              
1 row(s)
Took 0.1633 seconds                                                                                                                                                                                                                                                            

hbase(main):006:0> get_rsgroup 'default'
SERVERS                                                                                                                                                                                                                                                                        
ip-10-23-10-9.ec2.internal:16020                                                                                                                                                                                                                                               
1 row(s)
TABLES                                                                                                                                                                                                                                                                         
hbase:meta                                                                                                                                                                                                                                                                     
hbase:rsgroup                                                                                                                                                                                                                                                                  
t1                                                                                                                                                                                                                                                                             
ns1:t2                                                                                                                                                                                                                                                                         
4 row(s)
{code}


was (Author: water):
Without the patch:
{code}
hbase(main):004:0> list_rsgroups
NAME                                                                 SERVER / TABLE                                                                                                                                                                                            
 default                                                             server ip-10-23-10-9.ec2.internal:16020                                                                                                                                                                   
                                                                     table hbase:meta                                                                                                                                                                                          
                                                                     table hbase:rsgroup                                                                                                                                                                                       
                                                                     table t1                                                                                                                                                                                                  
                                                                     table ns1:t2                                                                                                                                                                                              
1 row(s)
Took 0.1633 seconds                                                                                                                                                                                                                                                            
hbase(main):005:0> get_group 'default'
NoMethodError: undefined method `get_group' for main:Object
Did you mean?  get_rsgroup

hbase(main):006:0> get_rsgroup 'default'
SERVERS                                                                                                                                                                                                                                                                        
ip-10-23-10-9.ec2.internal:16020                                                                                                                                                                                                                                               
1 row(s)
TABLES                                                                                                                                                                                                                                                                         
hbase:meta                                                                                                                                                                                                                                                                     
hbase:rsgroup                                                                                                                                                                                                                                                                  
t1                                                                                                                                                                                                                                                                             
ns1:t2                                                                                                                                                                                                                                                                         
4 row(s)
{code}

> Make table sorted when displaying rsgroup info in shell and master web UI
> -------------------------------------------------------------------------
>
>                 Key: HBASE-21478
>                 URL: https://issues.apache.org/jira/browse/HBASE-21478
>             Project: HBase
>          Issue Type: Improvement
>          Components: rsgroup
>            Reporter: Xiang Li
>            Assignee: Xiang Li
>            Priority: Minor
>         Attachments: HBASE-21478.master.000.patch
>
>
> Regarding the output of the command of "get_rsgoup" in hbase shell, or the section of "Server Group" of HMaster's web UI, the tables are not sorted, so not quite easy to read, like:
> {code}
> hbase(main):003:0> get_rsgroup 'default'
> GROUP INFORMATION
> ...
> Tables:
> table3
> ns2:table22
> table1
> ns1:table11
> ...
> {code}
> They could be sorted in the order of namespace then table name:
> {code}
> table1
> table3
> ns1:table11
> ns2:table22
> {code}



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