private Path generateKrbConfPath() {
      if (confCachePath == null) {
        String path = Paths.get("").toAbsolutePath().toString();
        String confPath =
            String.format(
                "%s/%s/%s",
                path,
                "amoro_krb_conf",
                md5() + "_" + ManagementFactory.getRuntimeMXBean().getName());
        LOG.info("Generated conf path: {}", confPath);
        Path p = Paths.get(confPath);
        if (!p.toFile().exists()) {
          p.toFile().mkdirs();
        }
        this.confCachePath = p;
      }
      return this.confCachePath;
    }
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