Configurable, Toolpublic abstract class GetGroupsBase extends Configured implements Tool
| Modifier | Constructor | Description |
|---|---|---|
protected |
GetGroupsBase(Configuration conf) |
Create an instance of this tool using the given configuration.
|
protected |
GetGroupsBase(Configuration conf,
java.io.PrintStream out) |
Used exclusively for testing.
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract java.net.InetSocketAddress |
getProtocolAddress(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. |
getConf, setConfclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetConf, setConfprotected GetGroupsBase(Configuration conf)
conf - configuration.protected GetGroupsBase(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.protected abstract java.net.InetSocketAddress getProtocolAddress(Configuration conf) throws java.io.IOException
GetUserMappingsProtocol implementation is running.conf - The configuration to use.java.io.IOException - raised on errors performing I/O.protected GetUserMappingsProtocol getUgmProtocol() throws java.io.IOException
GetUserMappingsProtocol.GetUserMappingsProtocol client proxy.java.io.IOException - raised on errors performing I/O.Copyright © 2008–2025 Apache Software Foundation. All rights reserved.