@Override
  public boolean equals(Object o) {
    if (this == o) {
      return true;
    }
    if (o == null || getClass() != o.getClass()) {
      return false;
    }
    TableMetaStore that = (TableMetaStore) o;
    return Arrays.equals(metaStoreSite, that.metaStoreSite)
        && Arrays.equals(hdfsSite, that.hdfsSite)
        && Arrays.equals(coreSite, that.coreSite)
        && Objects.equals(authMethod, that.authMethod)
        && Objects.equals(hadoopUsername, that.hadoopUsername)
        && Arrays.equals(krbKeyTab, that.krbKeyTab)
        && Arrays.equals(krbConf, that.krbConf)
        && Objects.equals(krbPrincipal, that.krbPrincipal)
        && Objects.equals(disableAuth, that.disableAuth);
  }
Login with configured catalog user and create a proxy user ugi. Then the operations are
performed within the doAs method of this proxy user ugi.
amoro-common/src/main/java/org/apache/amoro/table/TableMetaStore.java