org.apache.hadoop.mapred.tools
Class GetGroups

java.lang.Object
  extended by org.apache.hadoop.conf.Configured
      extended by org.apache.hadoop.tools.GetGroupsBase
          extended by org.apache.hadoop.mapred.tools.GetGroups
All Implemented Interfaces:
Configurable, Tool

public class GetGroups
extends GetGroupsBase

MR implementation of a tool for getting the groups which a given user belongs to.


Method Summary
protected  InetSocketAddress getProtocolAddress(Configuration conf)
          Must be overridden by subclasses to get the address where the GetUserMappingsProtocol implementation is running.
protected  String getServerPrincipalName(Configuration conf)
          Must be overridden by subclasses to get the expected server principal name when Kerberos is enabled on the cluster.
static void main(String[] argv)
           
 
Methods inherited from class org.apache.hadoop.tools.GetGroupsBase
run, setConf
 
Methods inherited from class org.apache.hadoop.conf.Configured
getConf
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.hadoop.conf.Configurable
getConf
 

Method Detail

getProtocolAddress

protected InetSocketAddress getProtocolAddress(Configuration conf)
                                        throws IOException
Description copied from class: GetGroupsBase
Must be overridden by subclasses to get the address where the GetUserMappingsProtocol implementation is running.

Specified by:
getProtocolAddress in class GetGroupsBase
Parameters:
conf - The configuration to use.
Returns:
The address where the service is listening.
Throws:
IOException

getServerPrincipalName

protected String getServerPrincipalName(Configuration conf)
Description copied from class: GetGroupsBase
Must be overridden by subclasses to get the expected server principal name when Kerberos is enabled on the cluster.

Specified by:
getServerPrincipalName in class GetGroupsBase
Parameters:
conf - The configuration to use.
Returns:
The expected server principal name.

main

public static void main(String[] argv)
                 throws Exception
Throws:
Exception


Copyright © 2009 The Apache Software Foundation