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

distcp creates missing perent directories which is inconsistent with fs -cp

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: distcp
    • Labels:
      None

      Description

      fs -cp will fail if the destination parent directory does not exist.

      $hadoop fs -cp /a.sh /dst/non-existing/a.sh
      cp: `/dst/non-existing/a.sh': No such file or directory
      

      However, distcp will not fail. It creates the missing parent directory.

      $hadoop distcp /a.sh /dst/non-existing/a.sh
      ...
      $hadoop fs -ls /dst/non-existing
      Found 1 items
      -rw-r--r--   3 szetszwo hdfs        531 2015-12-04 16:24 /dst/non-existing/a.sh
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              szetszwo Tsz Wo Nicholas Sze
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated: