Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id B3CA3200D24 for ; Tue, 24 Oct 2017 11:58:05 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id B22F3160BE0; Tue, 24 Oct 2017 09:58:05 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0578E160BDB for ; Tue, 24 Oct 2017 11:58:04 +0200 (CEST) Received: (qmail 74480 invoked by uid 500); 24 Oct 2017 09:58:04 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 74469 invoked by uid 99); 24 Oct 2017 09:58:04 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd1-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 24 Oct 2017 09:58:04 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd1-us-west.apache.org (ASF Mail Server at spamd1-us-west.apache.org) with ESMTP id 3B5B8C6887 for ; Tue, 24 Oct 2017 09:58:03 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd1-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -100.002 X-Spam-Level: X-Spam-Status: No, score=-100.002 tagged_above=-999 required=6.31 tests=[RP_MATCHES_RCVD=-0.001, SPF_PASS=-0.001, USER_IN_WHITELIST=-100] autolearn=disabled Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd1-us-west.apache.org [10.40.0.7]) (amavisd-new, port 10024) with ESMTP id oeyfNDG8f5_m for ; Tue, 24 Oct 2017 09:58:02 +0000 (UTC) Received: from mailrelay1-us-west.apache.org (mailrelay1-us-west.apache.org [209.188.14.139]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTP id D5A2E5FB40 for ; Tue, 24 Oct 2017 09:58:01 +0000 (UTC) Received: from jira-lw-us.apache.org (unknown [207.244.88.139]) by mailrelay1-us-west.apache.org (ASF Mail Server at mailrelay1-us-west.apache.org) with ESMTP id 0A8C1E0F65 for ; Tue, 24 Oct 2017 09:58:01 +0000 (UTC) Received: from jira-lw-us.apache.org (localhost [127.0.0.1]) by jira-lw-us.apache.org (ASF Mail Server at jira-lw-us.apache.org) with ESMTP id 6D24C212FD for ; Tue, 24 Oct 2017 09:58:00 +0000 (UTC) Date: Tue, 24 Oct 2017 09:58:00 +0000 (UTC) From: "Yu-Tang Lin (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-14950) har file system throws ArrayIndexOutOfBoundsException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 24 Oct 2017 09:58:05 -0000 [ https://issues.apache.org/jira/browse/HADOOP-14950?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yu-Tang Lin updated HADOOP-14950: --------------------------------- Status: Patch Available (was: Open) > har file system throws ArrayIndexOutOfBoundsException > ----------------------------------------------------- > > Key: HADOOP-14950 > URL: https://issues.apache.org/jira/browse/HADOOP-14950 > Project: Hadoop Common > Issue Type: Bug > Affects Versions: 3.0.0 > Environment: CDH 5.9.2 > Reporter: Wei-Chiu Chuang > Assignee: Yu-Tang Lin > Labels: newbie > Attachments: HADOOP-14950-branch-3.0.001.patch, HADOOP-14950-branch-3.0.002.patch, HADOOP-14950-branch-3.0.003.patch > > > 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.(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-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org