Hadoop Map/Reduce
  1. Hadoop Map/Reduce
  2. MAPREDUCE-1285

DistCp cannot handle -delete if destination is local filesystem

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 0.20.1
    • Fix Version/s: 0.21.0
    • Component/s: distcp
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The following exception is thrown:

      Copy failed: java.io.IOException: wrong value class: org.apache.hadoop.fs.RawLocalFileSystem$RawLocalFileStatus is not class org.apache.hadoop.fs.FileStatus
      	at org.apache.hadoop.io.SequenceFile$Writer.append(SequenceFile.java:988)
      	at org.apache.hadoop.io.SequenceFile$Writer.append(SequenceFile.java:977)
      	at org.apache.hadoop.tools.DistCp.deleteNonexisting(DistCp.java:1226)
      	at org.apache.hadoop.tools.DistCp.setup(DistCp.java:1134)
      	at org.apache.hadoop.tools.DistCp.copy(DistCp.java:650)
      	at org.apache.hadoop.tools.DistCp.run(DistCp.java:857)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
      	at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79)
      
      1. MAPREDUCE-1285-trunk.patch
        3 kB
        Peter Romianowski
      2. MAPREDUCE-1285.patch
        3 kB
        Peter Romianowski

        Activity

          People

          • Assignee:
            Peter Romianowski
            Reporter:
            Peter Romianowski
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development