[
https://issues.apache.org/jira/browse/HDFS-7390?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Benoy Antony updated HDFS-7390:
-------------------------------
Attachment: HDFS-7390-003.patch
Updated the patch. A new MXBean _BlockStats_ is defined and is implemented by
_BlockManager_.
Used standard MXBean approach (based on CompositeDataSupport) to output Json.
Testcases are added.
Dependency on HADOOP-11308 is no longer needed and it is closed.
The sample Json output is as below:
{code}
{
"name" : "Hadoop:service=NameNode,name=BlockStats",
"modelerType" :
"org.apache.hadoop.hdfs.server.blockmanagement.BlockManager",
"TieredStorageStats" : [ {
"key" : "RAM_DISK",
"value" : {
"blockPoolUsed" : 24576,
"capacityRemaining" : 1634963226624,
"capacityTotal" : 2994494914560,
"capacityUsed" : 24576,
"nodesInService" : 6
}
}, {
"key" : "ARCHIVE",
"value" : {
"blockPoolUsed" : 12288,
"capacityRemaining" : 817481576448,
"capacityTotal" : 1497247457280,
"capacityUsed" : 12288,
"nodesInService" : 3
}
}, {
"key" : "DISK",
"value" : {
"blockPoolUsed" : 12288,
"capacityRemaining" : 817481650176,
"capacityTotal" : 1497247457280,
"capacityUsed" : 12288,
"nodesInService" : 3
}
} ]
}
{code}
> Provide JMX metrics per storage type
> ------------------------------------
>
> Key: HDFS-7390
> URL: https://issues.apache.org/jira/browse/HDFS-7390
> Project: Hadoop HDFS
> Issue Type: Sub-task
> Affects Versions: 2.5.2
> Reporter: Benoy Antony
> Assignee: Benoy Antony
> Labels: BB2015-05-TBR
> Attachments: HDFS-7390-003.patch, HDFS-7390.patch, HDFS-7390.patch
>
>
> HDFS-2832 added heterogeneous support. In a cluster with different storage
> types, it is useful to have metrics per storage type.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)