Return-Path: Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: (qmail 62298 invoked from network); 9 Dec 2009 19:04:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Dec 2009 19:04:41 -0000 Received: (qmail 20358 invoked by uid 500); 9 Dec 2009 19:04:41 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 20320 invoked by uid 500); 9 Dec 2009 19:04:41 -0000 Mailing-List: contact mapreduce-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: mapreduce-issues@hadoop.apache.org Delivered-To: mailing list mapreduce-issues@hadoop.apache.org Received: (qmail 20310 invoked by uid 99); 9 Dec 2009 19:04:41 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 19:04:41 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 09 Dec 2009 19:04:39 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 5E546234C4B0 for ; Wed, 9 Dec 2009 11:04:18 -0800 (PST) Message-ID: <794648698.1260385458384.JavaMail.jira@brutus> Date: Wed, 9 Dec 2009 19:04:18 +0000 (UTC) From: "Tsz Wo (Nicholas), SZE (JIRA)" To: mapreduce-issues@hadoop.apache.org Subject: [jira] Commented: (MAPREDUCE-1285) DistCp cannot handle -delete if destination is local filesystem In-Reply-To: <1892332616.1260384738119.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/MAPREDUCE-1285?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12788245#action_12788245 ] Tsz Wo (Nicholas), SZE commented on MAPREDUCE-1285: --------------------------------------------------- Interestingly, there is a comment saying that RawLocalFileStatus would break DistCp.FilePair. (Note that CopyFiles is a former name of DistCp.) {code} static class RawLocalFileStatus extends FileStatus { /* We can add extra fields here. It breaks at least CopyFiles.FilePair(). * We recognize if the information is already loaded by check if * onwer.equals(""). */ {code} > DistCp cannot handle -delete if destination is local filesystem > --------------------------------------------------------------- > > Key: MAPREDUCE-1285 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-1285 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: distcp > Affects Versions: 0.20.1 > Reporter: Peter Romianowski > Attachments: MAPREDUCE-1285.patch > > > The following exception is thrown: > {code} > 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) > {code} -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.