private String md5() {
      return Hashing.md5()
          .newHasher()
          .putString(
              "tableMetaStore:"
                  + base64(getHdfsSite())
                  + base64(getCoreSite())
                  + base64(getMetaStoreSite())
                  + base64(getKrbConf())
                  + base64(getKrbKeyTab())
                  + getKrbPrincipal(),
              Charsets.UTF_8)
          .hash()
          .toString();
    }
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