diff --git a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java index 86599c7fbe..c3d15cd9e7 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java +++ b/hadoop-hdfs-project/hadoop-hdfs-rbf/src/main/java/org/apache/hadoop/hdfs/server/federation/metrics/RBFMetrics.java @@ -594,7 +594,7 @@ public String getCompileInfo() { @Override public String getHostAndPort() { - InetSocketAddress address = this.router.getHttpServerAddress(); + InetSocketAddress address = this.router.getRpcServerAddress(); if (address != null) { try { String hostname = InetAddress.getLocalHost().getHostName();