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

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.7.3
    • None
    • distcp
    • 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

            Unassigned Unassigned
            tangshangwen Wally Tang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: