From e3591aeec08945aae0b6bf95919f6ec3f81290e0 Mon Sep 17 00:00:00 2001 From: Xiaoyu Yao Date: Thu, 8 Jun 2017 10:43:55 -0700 Subject: [PATCH] HDFS-11953. Remove Guava v21 usage from HDFS-7240. Contributed by Xiaoyu Yao. --- .../src/main/java/org/apache/hadoop/ozone/OzoneClientUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 f38dd7ed0c7..e337d12240c 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 @@ -382,7 +382,7 @@ public final class OzoneClientUtils { if ((value == null) || value.isEmpty()) { return Optional.absent(); } - return Optional.of(HostAndPort.fromString(value).getHost()); + return Optional.of(HostAndPort.fromString(value).getHostText()); } /**