private byte[] readBytesFromFile(String filePath) {
      try {
        return IOUtils.toByteArray(Files.newInputStream(Paths.get(filePath)));
      } catch (IOException e) {
        throw new UncheckedIOException("Read config failed:" + filePath, e);
      }
    }
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