diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java index b4767dc79a0..d92f49f555c 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java @@ -651,7 +651,7 @@ public final class OzoneClientUtils { InetSocketAddress updatedAddr = new InetSocketAddress(addr.getHostString(), listenAddr.getPort()); conf.set(addressKey, - listenAddr.getHostString() + ":" + listenAddr.getPort()); + addr.getHostString() + ":" + listenAddr.getPort()); return updatedAddr; }