Modifier and Type | Field and Description |
---|---|
static org.apache.commons.logging.Log |
LOG |
Constructor and Description |
---|
UserGroupInformation() |
Modifier and Type | Method and Description |
---|---|
static UserGroupInformation |
getCurrentUGI() |
abstract String[] |
getGroupNames()
Get the name of the groups that the user belong to
|
abstract String |
getUserName()
Get username
|
static UserGroupInformation |
login(Configuration conf)
Login and return a UserGroupInformation object.
|
static UserGroupInformation |
readFrom(Configuration conf)
Read a
UserGroupInformation from conf |
static void |
setCurrentUGI(UserGroupInformation ugi)
Deprecated.
|
static void |
setCurrentUser(UserGroupInformation ugi)
Set the
UserGroupInformation for the current thread
WARNING - This method should be used only in test cases and other exceptional
cases! |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
readFields, write
public static UserGroupInformation getCurrentUGI()
UserGroupInformation
for the current thread@Deprecated public static void setCurrentUGI(UserGroupInformation ugi)
setCurrentUser(UserGroupInformation)
UserGroupInformation
for the current threadpublic static void setCurrentUser(UserGroupInformation ugi)
UserGroupInformation
for the current thread
WARNING - This method should be used only in test cases and other exceptional
cases!ugi
- UserGroupInformation
for the current threadpublic abstract String getUserName()
public abstract String[] getGroupNames()
public static UserGroupInformation login(Configuration conf) throws LoginException
LoginException
public static UserGroupInformation readFrom(Configuration conf) throws IOException
UserGroupInformation
from confIOException
Copyright © 2010 The Apache Software Foundation