|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.conf.Configured
org.apache.hadoop.mr1tools.GetGroupsBase
public abstract class GetGroupsBase
Base class for the HDFS and MR implementations of tools which fetch and display the groups that users belong to.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.apache.hadoop.conf.Configured |
---|
getConf, setConf |
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, setConf |
Constructor Detail |
---|
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.outMethod Detail |
---|
public int run(java.lang.String[] args) throws java.lang.Exception
PrintStream
configured earlier.
run
in interface org.apache.hadoop.util.Tool
java.lang.Exception
protected 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.IOException
protected GetUserMappingsProtocol getUgmProtocol() throws java.io.IOException
GetUserMappingsProtocol
.
GetUserMappingsProtocol
client proxy.
java.io.IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |