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,
java.io.PrintStream out)
Used exclusively for testing.
|
| Modifier and Type | Method and Description |
|---|---|
protected abstract java.net.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(java.lang.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,
java.io.PrintStream out)
conf - The configuration to use.out - The PrintStream to write to, instead of System.outpublic int run(java.lang.String[] args)
throws java.lang.Exception
PrintStream configured earlier.run in interface org.apache.hadoop.util.Tooljava.lang.Exceptionprotected abstract java.net.InetSocketAddress getProtocolAddress(org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
GetUserMappingsProtocol implementation is running.conf - The configuration to use.java.io.IOExceptionprotected GetUserMappingsProtocol getUgmProtocol() throws java.io.IOException
GetUserMappingsProtocol.GetUserMappingsProtocol client proxy.java.io.IOExceptionCopyright © 2009 The Apache Software Foundation