Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]
Created on
05-31-2022
12:58 PM
- last edited on
04-21-2026
12:55 AM
by
GrazittiAPI
Hello,
I want to graph number of HBase regions per regionserver. In Ambari there was a metric regionserver.Server.regionCount, that provided just that. In CM the closest query I could find is "select regions_across_regionservers" that shows me an average number of regions per server. Average is useful, but I want to track per server data.
I know how to get it from command line, or from master web gui. I am looking specifically for datasource query so I can graph it with grafana.
Thank you!
Created 06-22-2022 12:15 AM
Hello @sgenchev
While I am not familiar with building Charts to answer the Query, I shall share a few CLI approaches:
(I) HBCK: Running "hbase hbck --details" prints [1] detailing the Regions per RegionServer.
(II) Using JMX: Say, the HMaster UI is "http://HMaster1:22002/master-status".
Replace "master-status" with "jmx", which prints the JSON Output. Additional filtering can be done to capture the Regions per RegionServers.
Regards, Smarak
[1] HBCK Output:
RegionServer: RegionServer1,22101,1655811831192 number of regions: 1
RegionServer: RegionServer2,22101,1655811830393 number of regions: 1
RegionServer: RegionServer2,22101,1655811832307 number of regions: 1
Created 06-22-2022 12:15 AM
Hello @sgenchev
While I am not familiar with building Charts to answer the Query, I shall share a few CLI approaches:
(I) HBCK: Running "hbase hbck --details" prints [1] detailing the Regions per RegionServer.
(II) Using JMX: Say, the HMaster UI is "http://HMaster1:22002/master-status".
Replace "master-status" with "jmx", which prints the JSON Output. Additional filtering can be done to capture the Regions per RegionServers.
Regards, Smarak
[1] HBCK Output:
RegionServer: RegionServer1,22101,1655811831192 number of regions: 1
RegionServer: RegionServer2,22101,1655811830393 number of regions: 1
RegionServer: RegionServer2,22101,1655811832307 number of regions: 1
Created 07-06-2022 07:41 AM
Hello @sgenchev
We hope your Q concerning identifying the Region/RegionServers was addressed by our 06/22 Post. As such, We shall mark the Post as Resolved. If you have any concerns, Feel free to update the Post & we shall get back to you accordingly.
Regards, Smarak