|
||||||||||
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.tools.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(Configuration conf)
Create an instance of this tool using the given configuration. |
protected |
GetGroupsBase(Configuration conf,
PrintStream out)
Used exclusively for testing. |
Method Summary | |
---|---|
protected abstract InetSocketAddress |
getProtocolAddress(Configuration conf)
Must be overridden by subclasses to get the address where the GetUserMappingsProtocol implementation is running. |
int |
run(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(Configuration conf)
conf
- protected GetGroupsBase(Configuration conf, PrintStream out)
conf
- The configuration to use.out
- The PrintStream to write to, instead of System.outMethod Detail |
---|
public int run(String[] args) throws Exception
PrintStream
configured earlier.
run
in interface Tool
args
- command specific arguments.
Exception
protected abstract InetSocketAddress getProtocolAddress(Configuration conf) throws IOException
GetUserMappingsProtocol
implementation is running.
conf
- The configuration to use.
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |