From c255333e20c9af6166db5931d70151011d540359 Mon Sep 17 00:00:00 2001 From: Takanobu Asanuma Date: Wed, 11 Sep 2019 16:54:08 +0900 Subject: [PATCH] HDFS-14838. RBF: Display RPC (instead of HTTP) Port Number in RBF web UI. Contributed by Xieming Li --- .../hadoop/hdfs/server/federation/metrics/RBFMetrics.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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();