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 2018/11/14 13:30:00 UTC

[jira] [Commented] (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=16686494#comment-16686494 ] 

Xiang Li commented on HBASE-21478:
----------------------------------

I do not plan to change the logic of TableName#compareTo(), because RSGroupInfo#getTables() has a lot of usage. As an alternative, I only plan to update the output when displayed: May I provide a new function called RSGroupInfo#getTablesSortedByNamespaceAndName() and use the new function in hbase shell and master web UI when the tables are displayed?


> 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: Major
>
> 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)