Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-15484

Add new method batchRename for DistributedFileSystem and WebHdfsFileSystem

    XMLWordPrintableJSON

Details

    Description

      Sometime we need rename many files after a task,  add a new option in enum Rename to support batch rename, which only need one RPC and one lock. For example,

      rename(new Path("/dir1/f1::/dir2/f2"), new Path("/dir3/f1::dir4/f4"), Rename.BATCH)

      Attachments

        1. HDFS-15484.001.patch
          14 kB
          Yang Yun
        2. HDFS-15484.002.patch
          43 kB
          Yang Yun
        3. HDFS-15484.003.patch
          42 kB
          Yang Yun

        Issue Links

          Activity

            People

              hadoop_yangyun Yang Yun
              hadoop_yangyun Yang Yun
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 1h
                  1h