code: public static UserGroupInformation login(Configuration conf
        ) throws LoginException {
      if (LOGIN_UGI == null) {
        LOGIN_UGI = UnixUserGroupInformation.login(conf);
      }
      return LOGIN_UGI;
    }
docs: Login and return a UserGroupInformation object.