[
https://issues.apache.org/jira/browse/HDFS-5928?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14163030#comment-14163030
]
Haohui Mai commented on HDFS-5928:
----------------------------------
{code}
+ @Override // NameNodeStatusMXBean
+ public String getNamespace() {
+ return this.getNameServiceId(conf);
+ }
+
+ @Override // NameNodeStatusMXBean
+ public String getNameNodeId() {
+ return HAUtil.getNameNodeId(conf, getNamespace());
+ }
+
{code}
Instead of adding new interfaces in {{NameNodeStatusMXBean}}, is it possible to
get the information by looking at {{http://Addr/conf}? This is because for all
interfaces that are added into JMX, we need to keep it compatible across major
releases.
It might require some effort to parse the configs, but it requires no
compatibility guarantees.
> show namespace and namenode ID on NN dfshealth page
> ---------------------------------------------------
>
> Key: HDFS-5928
> URL: https://issues.apache.org/jira/browse/HDFS-5928
> Project: Hadoop HDFS
> Issue Type: Improvement
> Reporter: Siqi Li
> Assignee: Siqi Li
> Attachments: HDFS-5928.v2.patch, HDFS-5928.v1.patch
>
>
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)