From 41f1f1aabf99104e8bbfa6f29c54d86edf757bef Mon Sep 17 00:00:00 2001 From: Haohui Mai Date: Fri, 18 Sep 2015 18:23:53 -0700 Subject: [PATCH] HDFS-9101. Remove deprecated NameNode.getUri() static helper method. Contributed by Mingliang Liu. --- hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt | 3 +++ .../org/apache/hadoop/hdfs/server/namenode/NameNode.java | 7 ------- 2 files changed, 3 insertions(+), 7 deletions(-) diff --git a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt index 1386e8b92f4..b535ec34a8b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt +++ b/hadoop-hdfs-project/hadoop-hdfs/CHANGES.txt @@ -587,6 +587,9 @@ Release 2.8.0 - UNRELEASED HDFS-5802. NameNode does not check for inode type before traversing down a path. (Xiao Chen via Yongjun Zhang) + HDFS-9101. Remove deprecated NameNode.getUri() static helper method. + (Mingliang Liu via wheat9) + OPTIMIZATIONS HDFS-8026. Trace FSOutputSummer#writeChecksumChunks rather than diff --git a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java index c361ac9e50b..075663dbc73 100644 --- a/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java +++ b/hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NameNode.java @@ -471,13 +471,6 @@ public class NameNode implements NameNodeStatusMXBean { return DFSUtilClient.getNNAddress(addr); } - @Deprecated - /** - * @deprecated Use {@link DFSUtilClient#getNNUri(InetSocketAddress)} instead. - */ - public static URI getUri(InetSocketAddress namenode) { - return DFSUtilClient.getNNUri(namenode); - } // // Common NameNode methods implementation for the active name-node role. //