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

DistCp cannot handle -delete if destination is local filesystem

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.20.1
    • 0.21.0
    • distcp
    • None
    • 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)
      

      Attachments

        1. MAPREDUCE-1285.patch
          3 kB
          Peter Romianowski
        2. MAPREDUCE-1285-trunk.patch
          3 kB
          Peter Romianowski

        Activity

          People

            peter.romianowski Peter Romianowski
            peter.romianowski Peter Romianowski
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: