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

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • distcp
    • 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

            Unassigned Unassigned
            szetszwo Tsz-wo Sze
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: