[ 
https://issues.apache.org/jira/browse/MAPREDUCE-3082?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13246369#comment-13246369
 ] 

Hudson commented on MAPREDUCE-3082:
-----------------------------------

Integrated in Hadoop-Common-trunk-Commit #1992 (See 
[https://builds.apache.org/job/Hadoop-Common-trunk-Commit/1992/])
    MAPREDUCE-3082. Archive command take wrong path for input file with current 
directory (John George via bobby) (Revision 1309453)

     Result = SUCCESS
bobby : http://svn.apache.org/viewcvs.cgi/?root=Apache-SVN&view=rev&rev=1309453
Files : 
* /hadoop/common/trunk/hadoop-mapreduce-project/CHANGES.txt
* 
/hadoop/common/trunk/hadoop-tools/hadoop-archives/src/main/java/org/apache/hadoop/tools/HadoopArchives.java
* 
/hadoop/common/trunk/hadoop-tools/hadoop-archives/src/test/java/org/apache/hadoop/tools/TestHadoopArchives.java

                
> 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
>             Fix For: 0.23.3, 2.0.0
>
>         Attachments: MR-3082.patch, 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://<NN host>/user/hadoopqa/.staging/job_201109232234_0004;uri=<NN 
> IP>:8020;t.service=<NN IP>: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://<NN 
> host>/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

        

Reply via email to