Uploaded image for project: 'Hadoop Map/Reduce'
  1. Hadoop Map/Reduce
  2. MAPREDUCE-650

Add atomic move option

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • None
    • distcp
    • None

    Description

      Provide support for update to move directories/files atomically by copying the src directory to a tmp directory (with random/unique name) then move the directory to its target destination name after all subdirs/files are copied and verified.

      example option ideas
      hadoop ... distcp -update -move src dst
      or
      hadoop ... distcp -update -atomic src dst

      to assure file correctness at the destination, before distcp performs the 'move' at the end of the copy process, it should first perform a strong signature/cksum (e.g. MD4) on the files.

      The issue/need for this is that applications may attempt to start processing data (because files are present), prior to completion of a whole directory copy – resulting in work against an incomplete data set.

      Attachments

        1. d_retries_atomic.patch
          19 kB
          Ravi Gummadi
        2. d_retries_atomic_v1.patch
          19 kB
          Ravi Gummadi
        3. d_retries_atomic650_651.patch
          18 kB
          Ravi Gummadi
        4. d_retries_atomic650_651.v1.patch
          18 kB
          Ravi Gummadi

        Activity

          People

            ravidotg Ravi Gummadi
            theiger Richard Theige
            Votes:
            0 Vote for this issue
            Watchers:
            7 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: