@Override
  public void rename(String src, String dts) {
    tableMetaStore.doAs(
        () -> {
          Path srcPath = new Path(src);
          Path dtsPath = new Path(dts);
          FileSystem fs = getFs(srcPath);
          try {
            if (!fs.rename(srcPath, dtsPath)) {
              throw new IOException(
                  "Fail to rename: from "
                      + src
                      + " to "
                      + dts
                      + " and file system return false, need to check the hdfs path");
            }
          } catch (IOException e) {
            throw new UncheckedIOException("Fail to rename: from " + src + " to " + dts, 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