You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@hbase.apache.org by "Guangxu Cheng (JIRA)" <ji...@apache.org> on 2017/01/20 05:37:26 UTC

[jira] [Comment Edited] (HBASE-17496) RSGroup shell commands:get_server_rsgroup don't work and commands display an incorrect result size

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

Guangxu Cheng edited comment on HBASE-17496 at 1/20/17 5:36 AM:
----------------------------------------------------------------

After merge the patch as follows:

{code}
hbase(main):001:0> get_server_rsgroup 'hbase-01:16030'
default
1 row(s)
Took 0.3950 seconds
{code}
{code}
hbase(main):002:0> list_rsgroups
GROUPS
default
1 row(s)
Took 0.0130 seconds
{code}
{code}
hbase(main):003:0> get_table_rsgroup 't1'
default
1 row(s)
Took 0.0130 seconds
{code}
{code}
hbase(main):004:0> get_rsgroup 'default'
GROUP INFORMATION
Servers:
hbase-01:16030                                                                                                                                                     Tables:
hbase:meta
t1            
hbase:namespace
hbase:rsgroup
7 row(s)
Took 0.0130 seconds 
{code}


was (Author: andrewcheng):
After merge the patch as follows:

{code}
hbase(main):001:0> get_server_rsgroup '10.57.22.78:60020'
default
1 row(s)
Took 0.3950 seconds
{code}
{code}
hbase(main):002:0> list_rsgroups
GROUPS
default
1 row(s)
Took 0.0130 seconds
{code}
{code}
hbase(main):003:0> get_table_rsgroup 't1'
default
1 row(s)
Took 0.0130 seconds
{code}
{code}
hbase(main):004:0> get_rsgroup 'default'
GROUP INFORMATION
Servers:
10.57.22.78:60020                                                                                                                                                     Tables:
hbase:meta
t1            
hbase:namespace
hbase:rsgroup
7 row(s)
Took 0.0130 seconds 
{code}

> RSGroup shell commands:get_server_rsgroup don't work and commands display an incorrect result size
> --------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-17496
>                 URL: https://issues.apache.org/jira/browse/HBASE-17496
>             Project: HBase
>          Issue Type: Bug
>          Components: shell
>    Affects Versions: 2.0.0
>            Reporter: Guangxu Cheng
>            Assignee: Guangxu Cheng
>              Labels: rsgroup
>             Fix For: 2.0.0
>
>         Attachments: HBASE-17496-master-v1.patch
>
>
> scenario as follows:
> {code}
> hbase(main):001:0> get_server_rsgroup 'hbase-01:16030'
> ERROR: undefined method `getRSGroupOfServer' for #<Hbase::RSGroupAdmin:0x1acb74ad>
> Here is some help for this command:
> Get the group name the given region server is a member of.
>   hbase> get_server_rsgroup 'server1:port1'
> Took 0.0160 seconds
> {code}
> {code}
> hbase(main):002:0> list_rsgroups
> GROUPS
> default
> 1484874115 row(s)
> Took 0.3830 seconds
> {code}
> {code}
> hbase(main):003:0> get_table_rsgroup 't1'
> default
> 1484874133 row(s)
> Took 0.0100 seconds
> {code}
> {code}
> hbase(main):004:0> get_rsgroup 'default'
> GROUP INFORMATION
> Servers:
> hbase-01:16030
> Tables:
> hbase:meta
> t1
> hbase:namespace
> hbase:rsgroup
> 1484874150 row(s)
> Took 0.0140 seconds
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)