Ver Fonte

HDFS-14838. RBF: Display RPC (instead of HTTP) Port Number in RBF web UI. Contributed by Xieming Li

(cherry picked from commit c255333e20c9af6166db5931d70151011d540359)
Takanobu Asanuma há 5 anos atrás
pai
commit
8e27d6b4c9

+ 1 - 1
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();