Class KerberosUtils

java.lang.Object
org.apache.hadoop.hbase.util.KerberosUtils

@Private public class KerberosUtils extends Object
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private static final org.slf4j.Logger
     
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static org.apache.hadoop.security.UserGroupInformation
    loginAndReturnUGI(org.apache.hadoop.conf.Configuration conf, String username)
    Logs in a user using Kerberos keytab and returns the UserGroupInformation (UGI) instance.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • LOG

      private static final org.slf4j.Logger LOG
  • Constructor Details

  • Method Details

    • loginAndReturnUGI

      public static org.apache.hadoop.security.UserGroupInformation loginAndReturnUGI(org.apache.hadoop.conf.Configuration conf, String username) throws IOException
      Logs in a user using Kerberos keytab and returns the UserGroupInformation (UGI) instance.
      Parameters:
      conf - the configuration object
      username - the username for which the keytab file and principal are configured.
      Returns:
      the UserGroupInformation instance for the logged-in user.
      Throws:
      IOException - If an I/O error occurs during login.