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
This commit is contained in:
Jitendra Nath Pandey 2012-01-05 21:56:47 +00:00
parent 5f5561d057
commit a230d19d99
2 changed files with 4 additions and 2 deletions

View File

@ -83,6 +83,8 @@ Trunk (unreleased changes)
hostname in token instead of IP to allow server IP change. hostname in token instead of IP to allow server IP change.
(Daryn Sharp via suresh) (Daryn Sharp via suresh)
HADOOP-7957. Classes deriving GetGroupsBase should be able to override
proxy creation. (jitendra)
BUGS BUGS

View File

@ -94,7 +94,7 @@ public abstract class GetGroupsBase extends Configured implements Tool {
* @return A {@link GetUserMappingsProtocol} client proxy. * @return A {@link GetUserMappingsProtocol} client proxy.
* @throws IOException * @throws IOException
*/ */
private GetUserMappingsProtocol getUgmProtocol() throws IOException { protected GetUserMappingsProtocol getUgmProtocol() throws IOException {
GetUserMappingsProtocol userGroupMappingProtocol = GetUserMappingsProtocol userGroupMappingProtocol =
RPC.getProxy(GetUserMappingsProtocol.class, RPC.getProxy(GetUserMappingsProtocol.class,
GetUserMappingsProtocol.versionID, GetUserMappingsProtocol.versionID,