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

Distcp will delete existing file , If we use "-delete and -update" options and distcp file.

    XMLWordPrintableJSON

Details

    Description

      hdfs://ns1/tmp/a is an existing file, hdfs://ns2/tmp/a is also an existing file.

      When I run this command, 

      hadoop distcp -delete -update hdfs://ns1/tmp/a hdfs://ns2/tmp/a
      
      

      I Found hdfs://ns2/tmp/a is deleted unpectectedly.

      Attachments

        1. MAPREDUCE-7287.001.patch
          5 kB
          Chenyu Zheng

        Issue Links

          Activity

            People

              zhengchenyu Chenyu Zheng
              zhengchenyu Chenyu Zheng
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 3h
                  3h