|
@@ -85,7 +85,7 @@ import org.slf4j.LoggerFactory;
|
|
|
* user's username and groups. It supports both the Windows, Unix and Kerberos
|
|
|
* login modules.
|
|
|
*/
|
|
|
-@InterfaceAudience.LimitedPrivate({"HDFS", "MapReduce", "HBase", "Hive", "Oozie"})
|
|
|
+@InterfaceAudience.Public
|
|
|
@InterfaceStability.Evolving
|
|
|
public class UserGroupInformation {
|
|
|
@VisibleForTesting
|
|
@@ -703,7 +703,7 @@ public class UserGroupInformation {
|
|
|
*
|
|
|
* @param user The principal name to load from the ticket
|
|
|
* cache
|
|
|
- * @param ticketCachePath the path to the ticket cache file
|
|
|
+ * @param ticketCache the path to the ticket cache file
|
|
|
*
|
|
|
* @throws IOException if the kerberos login fails
|
|
|
*/
|
|
@@ -763,7 +763,7 @@ public class UserGroupInformation {
|
|
|
/**
|
|
|
* Create a UserGroupInformation from a Subject with Kerberos principal.
|
|
|
*
|
|
|
- * @param user The KerberosPrincipal to use in UGI
|
|
|
+ * @param subject The KerberosPrincipal to use in UGI
|
|
|
*
|
|
|
* @throws IOException if the kerberos login fails
|
|
|
*/
|
|
@@ -821,7 +821,7 @@ public class UserGroupInformation {
|
|
|
|
|
|
/**
|
|
|
* Log in a user using the given subject
|
|
|
- * @parma subject the subject to use when logging in a user, or null to
|
|
|
+ * @param subject the subject to use when logging in a user, or null to
|
|
|
* create a new subject.
|
|
|
* @throws IOException if login fails
|
|
|
*/
|
|
@@ -1644,7 +1644,7 @@ public class UserGroupInformation {
|
|
|
}
|
|
|
|
|
|
/**
|
|
|
- * Get the group names for this user. {@ #getGroups(String)} is less
|
|
|
+ * Get the group names for this user. {@link #getGroups()} is less
|
|
|
* expensive alternative when checking for a contained element.
|
|
|
* @return the list of users with the primary group first. If the command
|
|
|
* fails, it returns an empty list.
|