public abstract class GetGroupsBase
extends org.apache.hadoop.conf.Configured
implements org.apache.hadoop.util.Tool
| Modifier | Constructor and Description |
|---|---|
protected |
GetGroupsBase(org.apache.hadoop.conf.Configuration conf)
Create an instance of this tool using the given configuration.
|
protected |
GetGroupsBase(org.apache.hadoop.conf.Configuration conf,
PrintStream out)
Used exclusively for testing.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract InetSocketAddress |
getProtocolAddress(org.apache.hadoop.conf.Configuration conf)
Must be overridden by subclasses to get the address where the
GetUserMappingsProtocol implementation is running. |
protected GetUserMappingsProtocol |
getUgmProtocol()
Get a client of the
GetUserMappingsProtocol. |
int |
run(String[] args)
Get the groups for the users given and print formatted output to the
PrintStream configured earlier. |
protected GetGroupsBase(org.apache.hadoop.conf.Configuration conf)
conf - protected GetGroupsBase(org.apache.hadoop.conf.Configuration conf,
PrintStream out)
conf - The configuration to use.out - The PrintStream to write to, instead of System.outpublic int run(String[] args) throws Exception
PrintStream configured earlier.run in interface org.apache.hadoop.util.ToolExceptionprotected abstract InetSocketAddress getProtocolAddress(org.apache.hadoop.conf.Configuration conf) throws IOException
GetUserMappingsProtocol implementation is running.conf - The configuration to use.IOExceptionprotected GetUserMappingsProtocol getUgmProtocol() throws IOException
GetUserMappingsProtocol.GetUserMappingsProtocol client proxy.IOExceptionCopyright © 2009 The Apache Software Foundation