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

Elek, Marton edited comment on HDFS-12286 at 8/11/17 11:07 AM:
---------------------------------------------------------------

Yes. 

I uploaded two screenshots. One is the result of the /jmx http call from the 
browser the other one shows how it looks like from jconsole.

Ant it could be filtered like this:
{code}
/jmx?qry=Hadoop:service=*,name=*,component=ServerRuntime"
{code}

If the ServerRuntime tag exists both on KSM and SCM, I can read the same jmx 
properties (build version, uptime) without changing the URL in the component, 
even if the primary name of the JMX bean is different.

Actually the metrics system already uses additional properties. I have a bean 
with the key {{"Hadoop:service=KeySpaceM…,name=...MetricsSystem,sub=Stats"}}


was (Author: elek):
Two JMX bean example

> Ozone: Extend MBeans utility to add any key value pairs to the registered 
> MXBeans
> ---------------------------------------------------------------------------------
>
>                 Key: HDFS-12286
>                 URL: https://issues.apache.org/jira/browse/HDFS-12286
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>    Affects Versions: HDFS-7240
>            Reporter: Elek, Marton
>            Assignee: Elek, Marton
>             Fix For: HDFS-7240
>
>         Attachments: HDFS-12286-HDFS-7240.001.patch, jmx1.png, jmx2.png
>
>
> The MBeans class in hadoop-common helps to register MXBean to the platform 
> jmx bean. Unfortunatelly it supports only Name and Service keys even if the 
> JMX specification allows any key value pairs to use as a part of the 
> ObjectName.
> This patch adds the possibility to define more key/value pairs for the JMX 
> ObjectName.
> It will be usefull for the SCM/KSM web page. Both SCM/KSM Server have common 
> jmx properties. But to use a common html component to display them we need a 
> possibility to get the JMX bean of SCM server and KSM server with one query.
> This will be possible with adding additional (common) key/value property to 
> the ObjectName.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to