diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/FederationMetrics.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/FederationMetrics.java index 23f62b619db..bf772868ca7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/FederationMetrics.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/FederationMetrics.java @@ -526,7 +526,7 @@ public class FederationMetrics implements FederationMBean { @Override public String getHostAndPort() { - InetSocketAddress address = this.router.getHttpServerAddress(); + InetSocketAddress address = this.router.getRpcServerAddress(); if (address != null) { try { String hostname = InetAddress.getLocalHost().getHostName();