From a230d19d995b4942d5e05fa7355519e39c310790 Mon Sep 17 00:00:00 2001 From: Jitendra Nath Pandey Date: Thu, 5 Jan 2012 21:56:47 +0000 Subject: [PATCH] HADOOP-7957. Classes deriving GetGroupsBase should be able to override proxy creation. git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/trunk@1227861 13f79535-47bb-0310-9956-ffa450edef68 --- hadoop-common-project/hadoop-common/CHANGES.txt | 4 +++- .../src/main/java/org/apache/hadoop/tools/GetGroupsBase.java | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/hadoop-common-project/hadoop-common/CHANGES.txt b/hadoop-common-project/hadoop-common/CHANGES.txt index d5365b2292..834b3abe6e 100644 --- a/hadoop-common-project/hadoop-common/CHANGES.txt +++ b/hadoop-common-project/hadoop-common/CHANGES.txt @@ -82,7 +82,9 @@ Trunk (unreleased changes) HADOOP-7808. Port HADOOP-7510 - Add configurable option to use original hostname in token instead of IP to allow server IP change. (Daryn Sharp via suresh) - + + HADOOP-7957. Classes deriving GetGroupsBase should be able to override + proxy creation. (jitendra) BUGS diff --git a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tools/GetGroupsBase.java b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tools/GetGroupsBase.java index 4d627cbb5f..da7830de6b 100644 --- a/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tools/GetGroupsBase.java +++ b/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/tools/GetGroupsBase.java @@ -94,7 +94,7 @@ protected abstract InetSocketAddress getProtocolAddress(Configuration conf) * @return A {@link GetUserMappingsProtocol} client proxy. * @throws IOException */ - private GetUserMappingsProtocol getUgmProtocol() throws IOException { + protected GetUserMappingsProtocol getUgmProtocol() throws IOException { GetUserMappingsProtocol userGroupMappingProtocol = RPC.getProxy(GetUserMappingsProtocol.class, GetUserMappingsProtocol.versionID,