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

incorrect description in distcp2 document

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotBulk Copy AttachmentsBulk Move AttachmentsVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.2.1, 2.4.0
    • 2.6.0
    • documentation

    Description

      In http://hadoop.apache.org/docs/r1.2.1/distcp2.html#UpdateAndOverwrite

      The first statement of the "Update and Overwrite" section says:

      -update is used to copy files from source that don't exist at the target, or have different contents. -overwrite overwrites target-files even if they exist at the source, or have the same contents.

      The "Command Line Options" table says :

      -overwrite: Overwrite destination
      -update: Overwrite if src size different from dst size

      Based on the implementation, making the following modification would be more accurate:

      The first statement of the "Update and Overwrite" section:

      -update is used to copy files from source that don't exist at the target, or have different contents. -overwrite overwrites target-files if they exist at the target.
      

      The "Command Line Options" table:

        -overwrite: Overwrite destination
        -update: Overwrite destination if source and destination have different contents
      

      Thanks.

      Attachments

        1. HDFS-6502.patch
          3 kB
          Akira Ajisaka
        2. HDFS-6502.2.patch
          3 kB
          Akira Ajisaka
        3. HDFS-6502.3.patch
          3 kB
          Akira Ajisaka
        4. HDFS-6502.4.patch
          3 kB
          Akira Ajisaka

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            aajisaka Akira Ajisaka Assign to me
            yzhangal Yongjun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment