[
https://issues.apache.org/jira/browse/HBASE-22661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16884677#comment-16884677
]
Duo Zhang commented on HBASE-22661:
-----------------------------------
I think the problem is this line.
https://github.com/apache/hbase/blob/202d2adba1cf397a6416cb6b59358f19d46a927e/hbase-shell/src/main/ruby/shell/commands/list_regions.rb#L85
It is easy to fix, just get a ClusterMetrics and then create a ClusterStatus.
We can change this when we plan to remove ClusterStatus.
But the problem here is that we need a UT for this command so we will not break
it in the future...
> 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.14#76016)