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

Duo Zhang commented on HBASE-22661:
-----------------------------------

I think the problem is that we use some methods only in HBaseAdmin but not in 
the Admin interface, so after the removal of the HBaseAdmin the command is 
broken.

We do not have a UT for the list_regions command?

> list_regions command in hbase shell is broken
> ---------------------------------------------
>
>                 Key: HBASE-22661
>                 URL: https://issues.apache.org/jira/browse/HBASE-22661
>             Project: HBase
>          Issue Type: Bug
>            Reporter: Toshihiro Suzuki
>            Priority: Major
>
> I faced the following error in the master branch:
> {code}
> hbase(main):001:0> create "test", "cf"
> 2019-07-07 23:24:15,254 WARN  [main] util.NativeCodeLoader: Unable to load 
> native-hadoop library for your platform... using builtin-java classes where 
> applicable
> Created table test
> Took 6.5678 seconds
> => Hbase::Table - test
> hbase(main):002:0> list_regions "test"
> ERROR: undefined method `getClusterStatus' for 
> #<Java::OrgApacheHadoopHbaseClient::AdminOverAsyncAdmin:0x4ffced4e>
> Did you mean?  get_cluster_metrics
> For usage try 'help "list_regions"'
> Took 0.1997 seconds
> {code}
> I didn't check if the other branches have the same issue.



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

Reply via email to