public static boolean isKerberosAuthMode(Configuration conf) {
    AuthType authType = authTypeFromConf(conf, true);
    return authType.isEnabled(HiveAuthConstants.AuthTypes.KERBEROS);
  }
Refer from configuration to see if Kerberos auth method is enabled
@return true if kerberos is enabled, otherwise false.
service/src/java/org/apache/hive/service/auth/AuthType.java