UserResolverpublic class EchoUserResolver extends java.lang.Object implements UserResolver
| Modifier and Type | Field | Description |
|---|---|---|
static org.slf4j.Logger |
LOG |
| Constructor | Description |
|---|---|
EchoUserResolver() |
| Modifier and Type | Method | Description |
|---|---|---|
org.apache.hadoop.security.UserGroupInformation |
getTargetUgi(org.apache.hadoop.security.UserGroupInformation ugi) |
Map the given UGI to another per the subclass contract.
|
boolean |
needsTargetUsersList() |
Indicates whether this user resolver needs a list of target users to be
provided.
|
boolean |
setTargetUsers(java.net.URI userdesc,
org.apache.hadoop.conf.Configuration conf) |
Configure the user map given the URI and configuration.
|
public boolean setTargetUsers(java.net.URI userdesc,
org.apache.hadoop.conf.Configuration conf)
throws java.io.IOException
UserResolverPath
listing target users.
This method should be called only if UserResolver.needsTargetUsersList()
returns true.setTargetUsers in interface UserResolveruserdesc - URI from which user information may be loaded per the
subclass contract.conf - The tool configuration.java.io.IOExceptionpublic org.apache.hadoop.security.UserGroupInformation getTargetUgi(org.apache.hadoop.security.UserGroupInformation ugi)
UserResolvergetTargetUgi in interface UserResolverugi - User information from the trace.public boolean needsTargetUsersList()
EchoUserResolver simply returns the user's name passed as
the argument, it doesn't need a target list of users.needsTargetUsersList in interface UserResolverCopyright © 2008–2025 Apache Software Foundation. All rights reserved.