[ https://issues.apache.org/jira/browse/HADOOP-14950?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16206272#comment-16206272 ]
Wei-Chiu Chuang commented on HADOOP-14950: ------------------------------------------ A correctly formatted _index fille for a har containg a 1MB file foobar file should contain the following: {noformat} %2F dir 1508173657482+1023+hdfs+supergroup 0 0 foobar %2Ffoobar file part-0 0 1048576 1508173512707+420+hdfs+supergroup {noformat} > har file system throws ArrayIndexOutOfBoundsException > ----------------------------------------------------- > > Key: HADOOP-14950 > URL: https://issues.apache.org/jira/browse/HADOOP-14950 > Project: Hadoop Common > Issue Type: Bug > Environment: CDH 5.9.2 > Reporter: Wei-Chiu Chuang > Labels: newbie > > When listing a har file system file, it throws an AIOOBE like the following: > {noformat} > $ hdfs dfs -ls har:///abc.har > -ls: Fatal internal error > java.lang.ArrayIndexOutOfBoundsException: 1 > at org.apache.hadoop.fs.HarFileSystem$HarStatus.<init>(HarFileSystem.java:597) > at > org.apache.hadoop.fs.HarFileSystem$HarMetaData.parseMetaData(HarFileSystem.java:1201) > at > org.apache.hadoop.fs.HarFileSystem$HarMetaData.access$000(HarFileSystem.java:1098) > at org.apache.hadoop.fs.HarFileSystem.initialize(HarFileSystem.java:166) > at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2711) > at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:382) > at org.apache.hadoop.fs.Path.getFileSystem(Path.java:296) > at org.apache.hadoop.fs.shell.PathData.expandAsGlob(PathData.java:325) > at org.apache.hadoop.fs.shell.Command.expandArgument(Command.java:235) > at org.apache.hadoop.fs.shell.Command.expandArguments(Command.java:218) > at > org.apache.hadoop.fs.shell.FsCommand.processRawArguments(FsCommand.java:102) > at org.apache.hadoop.fs.shell.Command.run(Command.java:165) > at org.apache.hadoop.fs.FsShell.run(FsShell.java:315) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70) > at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:84) > at org.apache.hadoop.fs.FsShell.main(FsShell.java:372) > {noformat} > Checking the code, it looks like the _index file in the har is mal-formed. It > expects two string separately by a space in each line, and this AIOOBE is > possible if the second string does not exist. > File this jira to improve the error handling of such case. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: common-issues-h...@hadoop.apache.org