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

Distcp cannot copy files of the same name in different directories

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.3
    • Fix Version/s: None
    • Component/s: distcp
    • Labels:
      None

      Description

      When I tested distcp, I found that I could not copy files with the same name in different directories,here is my test case:

      source:
      /user/hadoop/dir1/a.txt
      /user/hadoop/dir2/a.txt

      target
      /tmp/dist-cp/

      hadoop distcp -m 2 -overwrite /user/hadoop/dir* /tmp/dist-cp/

      result: failed

      source:
      /user/hadoop/dir1/a.txt
      /user/hadoop/dir2/b.txt

      target:
      /tmp/dist-cp/

      hadoop distcp -m 2 -overwrite /user/hadoop/dir* /tmp/dist-cp/

      result: success

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              tangshangwen tangshangwen
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: