[
https://issues.apache.org/jira/browse/HBASE-10436?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13884932#comment-13884932
]
Jonathan Hsieh commented on HBASE-10436:
----------------------------------------
here's a sample output if you look at hbasemaster/jmx
{code}
}, {
"name" : "Hadoop:service=HBase,name=Master,sub=Server",
"modelerType" : "Master,sub=Server",
"tag.Context" : "master",
"tag.zookeeperQuorum" : "localhost:2181",
"tag.serverName" : "localhost,53655,1390950016536",
"tag.clusterId" : "3b5b95ba-315f-495d-9e08-08a9626ccb37",
"tag.isActiveMaster" : "true",
"tag.Context" : "master",
"tag.Hostname" : "swoop",
"masterActiveTime" : 1390950018853,
"masterStartTime" : 1390950018513,
"averageLoad" : 3.0,
"numRegionServers" : 1,
"numDeadRegionServers" : 0,
"clusterRequests" : 22172
}, {
....
}, {
"name" : "hadoop:service=HBase,name=Master,sub=RegionServers",
"modelerType" : "org.apache.hadoop.hbase.master.MasterRSTrackerMXBeanImpl",
"RegionServers" : [ {
"key" : "localhost,38682,1390950017735",
"value" : {
"currentCompactedKVs" : 0,
"infoServerPort" : 43366,
"load" : 3,
"maxHeapMB" : 966,
"memstoreSizeInMB" : 0,
"numberOfRegions" : 3,
"numberOfRequests" : 0,
"readRequestsCount" : 30,
"regionServerCoprocessors" : [ ],
"regionsLoad" : [ {
"key" : [ 104, 98, 97, 115, 101, 58, 109, 101, 116, 97, 44, 44, 49 ],
"value" : {
"completeSequenceId" : 19,
"currentCompactedKVs" : 0,
"memStoreSizeMB" : 0,
"name" : [ 104, 98, 97, 115, 101, 58, 109, 101, 116, 97, 44, 44, 49
],
"nameAsString" : "hbase:meta,,1",
"readRequestsCount" : 26,
"requestsCount" : 28,
"rootIndexSizeKB" : 0,
"storeUncompressedSizeMB" : 0,
"storefileIndexSizeMB" : 0,
"storefileSizeMB" : 0,
...
{code}
here's what is in 0.94.x
{code}
, {
"name" : "hadoop:service=Master,name=Master",
"modelerType" : "org.apache.hadoop.hbase.master.MXBeanImpl",
"ZookeeperQuorum" : "localhost:2181",
....
"RegionsInTransition" : [ ],
"RegionServers" : [ {
"key" : "localhost,48346,1390857257246",
"value" : {
"load" : 2,
"maxHeapMB" : 966,
"memStoreSizeInMB" : 0,
"numberOfRegions" : 2,
"numberOfRequests" : 0,
"regionsLoad" : [ {
"key" : [ 45, 82, 79, 79, 84, 45, 44, 44, 48 ],
"value" : {
"currentCompactedKVs" : 0,
"memStoreSizeMB" : 0,
"name" : [ 45, 82, 79, 79, 84, 45, 44, 44, 48 ],
"nameAsString" : "-ROOT-,,0",
"readRequestsCount" : 24,
"requestsCount" : 25,
"rootIndexSizeKB" : 0,
{code}
> hbase 0.96+ jmx metrics do not have regionserver info any more.
> ---------------------------------------------------------------
>
> Key: HBASE-10436
> URL: https://issues.apache.org/jira/browse/HBASE-10436
> Project: HBase
> Issue Type: Bug
> Affects Versions: 0.98.0, 0.96.0, 0.99.0
> Reporter: Jonathan Hsieh
> Assignee: Jonathan Hsieh
> Priority: Critical
> Attachments: hbase-10436.patch
>
>
> HBase 0.96's refactored jmx beans do not contain the master's list of dead
> region servers and live regionservers with load info. HBase 0.94 did (though
> in a single monolithic blob).
> This JMX interface should be considered as much of an API as the the normal
> wire or java api. Dropping values from this was done without deprecation and
> the removal of this information is a functional regression.
> We should provide the information in the 0.96+ JMX. HBase 0.94 had a
> monolithic JMX blob ("hadoop:service=Master,name=Master") that contained a
> lot of information, including the regionserver list and the cached
> regionserver load for each region found on the master webpage. 0.96+
> refactored jmx this into several jmx beans which could be selectively
> retrieved. These include:
> * hadoop:service=HBase,name=Master,sub=AssignmentManager
> * hadoop:service=HBase,name=Master,sub=Balancer
> * hadoop:service=HBase,name=Master,sub=Server
> * hadoop:service=HBase,name=Master,sub=FileSystem
> Specifically the (Hadoop:service=HBase,name=Master,sub=Server) listing that
> used to contain regionservers and deadregionservers in jmx were replaced in
> with numRegionServers and numDeadRegionservers which only contain counts.
> I propose just adding another mbean called "RegionServers" under the bean:
> "hadoop:service=HBase,name=Master,sub=RegionServers"
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)