Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 96776 invoked from network); 25 Oct 2010 06:49:46 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 25 Oct 2010 06:49:46 -0000 Received: (qmail 10220 invoked by uid 500); 25 Oct 2010 06:49:46 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 10099 invoked by uid 500); 25 Oct 2010 06:49:44 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 10090 invoked by uid 99); 25 Oct 2010 06:49:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 06:49:43 +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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 25 Oct 2010 06:49:41 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o9P6nJb3010205 for ; Mon, 25 Oct 2010 06:49:20 GMT Message-ID: <27689874.54541287989359909.JavaMail.jira@thor> Date: Mon, 25 Oct 2010 02:49:19 -0400 (EDT) From: "Chris Nauroth (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-7006) hadoop fs -getmerge does not work using codebase from trunk. In-Reply-To: <21950654.54351287988881239.JavaMail.jira@thor> 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/HADOOP-7006?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924465#action_12924465 ] Chris Nauroth commented on HADOOP-7006: --------------------------------------- It appears that this was introduced with changeset 949658. Here is a partial diff of org.apache.hadoop.fs.FileUtil: {noformat} @@ -258,7 +258,7 @@ Configuration conf, String addString) throws IOException { dstFile = checkDest(srcDir.getName(), dstFS, dstFile, false); - if (!srcFS.getFileStatus(srcDir).isDir()) + if (srcFS.getFileStatus(srcDir).isDirectory()) return false; {noformat} Notice that in addition to switching from isDir() to isDirectory(), this change also dropped the negation on the front of the condition. I'll attach a simple one-line patch to restore functionality. I've also added a unit test to cover the FileUtil.copyMerge API. I'd like to volunteer for HADOOP-6387 next, and I want this unit test in place as a regression test while I work on that. > hadoop fs -getmerge does not work using codebase from trunk. > ------------------------------------------------------------ > > Key: HADOOP-7006 > URL: https://issues.apache.org/jira/browse/HADOOP-7006 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.22.0 > Reporter: Chris Nauroth > Fix For: 0.22.0 > > > Running the codebase from trunk, the hadoop fs -getmerge command does not work. As implemented in prior versions (i.e. 0.20.2), I could run hadoop fs -getmerge pointed at a directory containing multiple files. It would merge all files into a single file on the local file system. Running the same command using the codebase from trunk, it looks like nothing happens. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.