Return-Path: X-Original-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-mapreduce-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id E4C8A9D1A for ; Wed, 14 Mar 2012 14:27:02 +0000 (UTC) Received: (qmail 37288 invoked by uid 500); 14 Mar 2012 14:27:02 -0000 Delivered-To: apmail-hadoop-mapreduce-issues-archive@hadoop.apache.org Received: (qmail 37253 invoked by uid 500); 14 Mar 2012 14:27:02 -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 37215 invoked by uid 99); 14 Mar 2012 14:27:02 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 14:27:02 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 14 Mar 2012 14:26:59 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 50AC9209CC for ; Wed, 14 Mar 2012 14:26:38 +0000 (UTC) Date: Wed, 14 Mar 2012 14:26:38 +0000 (UTC) From: "John George (Commented) (JIRA)" To: mapreduce-issues@hadoop.apache.org Message-ID: <550938818.12951.1331735198350.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <1366279560.8441.1316822606157.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (MAPREDUCE-3082) archive command take wrong path for input file with current directory 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-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13229227#comment-13229227 ] John George commented on MAPREDUCE-3082: ---------------------------------------- The patch applies to hadoop tools directory and not to the mapreduce directory and it seems like that is the reason the patch cannot be applied cleanly. Wondering if I should create a new JIRA under common for this to work? > archive command take wrong path for input file with current directory > --------------------------------------------------------------------- > > Key: MAPREDUCE-3082 > URL: https://issues.apache.org/jira/browse/MAPREDUCE-3082 > Project: Hadoop Map/Reduce > Issue Type: Bug > Components: harchive > Affects Versions: 0.20.204.1, 0.23.2, 0.23.3 > Reporter: Rajit Saha > Assignee: John George > Attachments: MR-3082.patch > > > $hadoop dfs -copyFromLocal /etc/passwd . > $hadoop dfs -lsr . > -rw------- 3 hadoopqa hdfs 6883 2011-09-23 22:37 /user/hadoopqa/passwd > $hadoop archive -archiveName test1.har -p . passwd . > 11/09/23 22:39:22 INFO hdfs.DFSClient: Created HDFS_DELEGATION_TOKEN token 4 for hadoopqa > 11/09/23 22:39:22 INFO security.TokenCache: Got dt for > hdfs:///user/hadoopqa/.staging/job_201109232234_0004;uri=:8020;t.service=:8020 > 11/09/23 22:39:22 INFO mapred.JobClient: Running job: job_201109232234_0004 > 11/09/23 22:39:23 INFO mapred.JobClient: map 0% reduce 0% > 11/09/23 22:39:34 INFO mapred.JobClient: Task Id : attempt_201109232234_0004_m_000000_0, Status : FAILED > java.io.FileNotFoundException: File does not exist: hdfs:///user/hadoopqa/hadoopqa/passwd > at org.apache.hadoop.hdfs.DistributedFileSystem.getFileStatus(DistributedFileSystem.java:525) > at org.apache.hadoop.tools.HadoopArchives$HArchivesMapper.map(HadoopArchives.java:697) > at org.apache.hadoop.tools.HadoopArchives$HArchivesMapper.map(HadoopArchives.java:587) > at org.apache.hadoop.mapred.MapRunner.run(MapRunner.java:50) > at org.apache.hadoop.mapred.MapTask.runOldMapper(MapTask.java:436) > at org.apache.hadoop.mapred.MapTask.run(MapTask.java:372) > at org.apache.hadoop.mapred.Child$4.run(Child.java:261) > at java.security.AccessController.doPrivileged(Native Method) > at javax.security.auth.Subject.doAs(Subject.java:396) > at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1059) > at org.apache.hadoop.mapred.Child.main(Child.java:255) > So Archiving is failing as it was finding input file at /user/hadoopqa/hadoopqa/passwd , whereas it should look for /user/hadoopqa/passwd -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira