You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-issues@hadoop.apache.org by "Daryn Sharp (JIRA)" <ji...@apache.org> on 2013/07/11 18:41:48 UTC

[jira] [Commented] (HADOOP-9724) Trying to access har files within a har file complains about no index

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

Daryn Sharp commented on HADOOP-9724:
-------------------------------------

It's not an FsShell problem, but a HarFileSystem problem.

{{HarFileSystem#archivePath}} looks for the _last_ component that ends with ".har".  I'd expect it to use the first component ending with ".har" which would allow you to "see" the inner har.  However you won't be able to directly access files in the inner har w/o some wizardry.
                
> Trying to access har files within a har file complains about no index
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-9724
>                 URL: https://issues.apache.org/jira/browse/HADOOP-9724
>             Project: Hadoop Common
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.0.4-alpha
>            Reporter: Stephen Chu
>            Priority: Minor
>
> If a har file contains another har file, accessing the inner har file through FsShell will complain about no index file, even if the index file exists.
> {code}
> [schu@hdfs-vanilla-1 ~]$ hdfs dfs -ls har:///user/schu/foo4.har/testDir1/testDir2/foo3.har
> ls: Invalid path for the Har Filesystem. No index file in har:/user/schu/foo4.har/testDir1/testDir2/foo3.har
> [schu@hdfs-vanilla-1 ~]$ hdfs dfs -ls /user/schu/testDir1/testDir2/foo3.har
> Found 4 items
> -rw-r--r--   1 schu supergroup          0 2013-07-10 23:22 /user/schu/testDir1/testDir2/foo3.har/_SUCCESS
> -rw-r--r--   5 schu supergroup         91 2013-07-10 23:22 /user/schu/testDir1/testDir2/foo3.har/_index
> -rw-r--r--   5 schu supergroup         22 2013-07-10 23:22 /user/schu/testDir1/testDir2/foo3.har/_masterindex
> -rw-r--r--   1 schu supergroup          0 2013-07-10 23:22 /user/schu/testDir1/testDir2/foo3.har/part-0
> [schu@hdfs-vanilla-1 ~]$ hdfs dfs -ls har:///user/schu/testDir1/testDir2/foo3.har
> Found 1 items
> drwxr-xr-x   - schu supergroup          0 2013-07-10 23:22 har:///user/schu/testDir1/testDir2/foo3.har/testDir1
> [schu@hdfs-vanilla-1 ~]$ 
> {code}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira