@Override
  public void makeDirectories(String path) {
    tableMetaStore.doAs(
        () -> {
          Path filePath = new Path(path);
          FileSystem fs = getFs(filePath);
          try {
            if (!fs.mkdirs(filePath)) {
              throw new IOException(
                  "Fail to mkdirs: path "
                      + path
                      + " and file system return false,, need to check the hdfs path");
            }
          } catch (IOException e) {
            throw new UncheckedIOException("Fail to mkdirs: path " + path, e);
          }
          return null;
        });
  }
Implementation of {@link AuthenticatedFileIO} for hadoop file system with authentication.
amoro-format-iceberg/src/main/java/org/apache/amoro/io/AuthenticatedHadoopFileIO.java