Return-Path: Delivered-To: apmail-hadoop-core-dev-archive@www.apache.org Received: (qmail 39430 invoked from network); 26 Jun 2008 18:40:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2008 18:40:22 -0000 Received: (qmail 87358 invoked by uid 500); 26 Jun 2008 18:40:07 -0000 Delivered-To: apmail-hadoop-core-dev-archive@hadoop.apache.org Received: (qmail 87334 invoked by uid 500); 26 Jun 2008 18:40:07 -0000 Mailing-List: contact core-dev-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: core-dev@hadoop.apache.org Delivered-To: mailing list core-dev@hadoop.apache.org Received: (qmail 87319 invoked by uid 99); 26 Jun 2008 18:40:07 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 26 Jun 2008 11:40:07 -0700 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; Thu, 26 Jun 2008 18:39:25 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2DC82234C156 for ; Thu, 26 Jun 2008 11:39:45 -0700 (PDT) Message-ID: <112720557.1214505585166.JavaMail.jira@brutus> Date: Thu, 26 Jun 2008 11:39:45 -0700 (PDT) From: "Mahadev konar (JIRA)" To: core-dev@hadoop.apache.org Subject: [jira] Updated: (HADOOP-3588) Bug report for archives In-Reply-To: <1221968553.1213748565057.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-3588?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mahadev konar updated HADOOP-3588: ---------------------------------- Status: Open (was: Patch Available) > Bug report for archives > ----------------------- > > Key: HADOOP-3588 > URL: https://issues.apache.org/jira/browse/HADOOP-3588 > Project: Hadoop Core > Issue Type: Bug > Components: tools/harchive > Reporter: Hairong Kuang > Assignee: Mahadev konar > Priority: Blocker > Fix For: 0.18.0 > > Attachments: Hadoop-3588-trunk_2.patch > > > I tested archives. Here is the bug report: > Documentation: > Add examples to section 3 to illustrate the use of listing/cating files in an archive. > > User interface: > Case 1: > $ hadoop archive -archiveName xx.har /conf > Index: 0, Size: 0 > Case 2: archive does not occur in destination > $ hadoop archive -archiveName /dd/xx.har /conf /cc > 08/06/17 22:36:35 INFO mapred.JobClient: Running job: job_200806172141_0005 > 08/06/17 22:36:36 INFO mapred.JobClient: map 0% reduce 0% > 08/06/17 22:36:39 INFO mapred.JobClient: map 100% reduce 0% > 08/06/17 22:36:46 INFO mapred.JobClient: Job complete: job_200806172141_0005 > ... > $ hadoop dfs -ls /dd > Found 1 items > drwxr-xr-x - hairong supergroup 0 2008-06-17 22:36 /dd/xx.har > $ hadoop dfs -ls /cc > ls: Cannot access /cc: No such file or directory. > Case 3: archive gets overwritten without any warning > $ hadoop dfs -ls /dd > Found 1 items > drwxr-xr-x - hairong supergroup 0 2008-06-17 22:36 /dd/xx.har > $ hadoop archive -archiveName xx.har /conf /dd > 08/06/17 22:43:46 INFO mapred.JobClient: Running job: job_200806172141_0006 > 08/06/17 22:43:47 INFO mapred.JobClient: map 0% reduce 0% > 08/06/17 22:43:49 INFO mapred.JobClient: map 100% reduce 0% > 08/06/17 22:43:56 INFO mapred.JobClient: Job complete: job_200806172141_0006 > ... > $ hadoop dfs -ls /dd > Found 1 items > drwxr-xr-x - hairong supergroup 0 2008-06-17 22:43 /dd/xx.har > Case 4: src & dst are the same - I think we should not allow this > $ hadoop archive -archiveName xx.har /conf /conf > 08/06/17 22:52:16 INFO mapred.JobClient: Running job: job_200806172141_0008 > 08/06/17 22:52:17 INFO mapred.JobClient: map 0% reduce 0% > 08/06/17 22:52:22 INFO mapred.JobClient: map 100% reduce 0% > 08/06/17 22:52:30 INFO mapred.JobClient: Job complete: job_200806172141_0008 > ... > $ hadoop dfs -ls /conf > Found 3 items > -rw-r--r-- 1 hairong supergroup 3889 2008-06-17 21:43 /conf/hadoop-site.xml > -rw-r--r-- 1 hairong supergroup 2844 2008-06-17 21:43 /conf/log4j.properties > drwxr-xr-x - hairong supergroup 0 2008-06-17 22:52 /conf/xx.har > Case 5: dst is a file - more informative message > $ hadoop dfs -ls /hadoop-site.xml > Found 1 items > -rw-r--r-- 1 hairong supergroup 3889 2008-06-17 23:06 /hadoop-site.xml > $ hadoop archive -archiveName xx.har /conf /hadoop-site.xml > 08/06/17 23:06:54 INFO mapred.JobClient: Running job: job_200806172141_0009 > Job failed! > Functionality: > Case 5: error message is better to be "op" not allowed. > $ hadoop dfs -ls har:///test/xx.har/conf > Found 2 items > -rw-r--r-- 10 hairong supergroup 3889 2008-06-17 23:24 /test/xx.har/conf/hadoop-site.xml > -rw-r--r-- 10 hairong supergroup 2844 2008-06-17 23:24 /test/xx.har/conf/log4j.properties > $ hadoop dfs -ls har:///test/xx.har/conf/hadoop-site.xml > Found 1 items > -rw-r--r-- 10 hairong supergroup 3889 2008-06-17 23:24 /test/xx.har/conf/hadoop-site.xml > $ hadoop dfs -rm har:///test/xx.har/conf/hadoop-site.xml > rm: Har: delete not implemented > $ hadoop dfs -mv har:///test/xx.har/conf/hadoop-site.xml har:///test/xx.har/conf/hadoop-default.xml > mv: Failed to rename har:/test/xx.har/conf/hadoop-site.xml to har:/test/xx.har/conf/hadoop-default.xml > Case 6: count is not implemented > $ hadoop dfs -count har:///test/xx.har/conf > Can not find listing for har:///test/xx.har/conf -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.