public class SubmitterUserResolver extends Object implements UserResolver
Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
SubmitterUserResolver() |
Modifier and Type | Method and Description |
---|---|
UserGroupInformation |
getTargetUgi(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(URI userdesc,
Configuration conf)
Configure the user map given the URI and configuration.
|
public SubmitterUserResolver() throws IOException
IOException
public boolean setTargetUsers(URI userdesc, Configuration conf) throws IOException
UserResolver
Path
listing target users.
This method should be called only if UserResolver.needsTargetUsersList()
returns true.setTargetUsers
in interface UserResolver
userdesc
- URI from which user information may be loaded per the
subclass contract.conf
- The tool configuration.IOException
public UserGroupInformation getTargetUgi(UserGroupInformation ugi)
UserResolver
getTargetUgi
in interface UserResolver
ugi
- User information from the trace.public boolean needsTargetUsersList()
Since SubmitterUserResolver
returns the user name who is running
gridmix, it doesn't need a target list of users.
needsTargetUsersList
in interface UserResolver
Copyright © 2013 Apache Software Foundation. All rights reserved.