Package | Description |
---|---|
org.apache.hadoop.security |
Modifier and Type | Method and Description |
---|---|
static UnixUserGroupInformation |
UnixUserGroupInformation.createImmutable(String[] ugi)
Create an immutable
UnixUserGroupInformation object. |
static UnixUserGroupInformation |
UnixUserGroupInformation.login()
Get current user's name and the names of all its groups from Unix.
|
static UnixUserGroupInformation |
UnixUserGroupInformation.login(Configuration conf)
Equivalent to login(conf, false).
|
static UnixUserGroupInformation |
UnixUserGroupInformation.login(Configuration conf,
boolean save)
Get a user's name & its group names from the given configuration;
If it is not defined in the configuration, get the current user's
information from Unix.
|
static UnixUserGroupInformation |
UnixUserGroupInformation.readFromConf(Configuration conf,
String attr)
Read a UGI from the given
conf
The object is expected to store with the property name attr
as a comma separated string that starts
with the user name followed by group names. |
Modifier and Type | Method and Description |
---|---|
static void |
UnixUserGroupInformation.saveToConf(Configuration conf,
String attr,
UnixUserGroupInformation ugi)
Store the given
ugi as a comma separated string in
conf as a property attr
The String starts with the user name followed by the default group names,
and other group names. |
Copyright © 2010 The Apache Software Foundation