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 05D37200C64 for ; Fri, 28 Apr 2017 18:34:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 026AF160BBD; Fri, 28 Apr 2017 16:34:12 +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 4A5AC160B95 for ; Fri, 28 Apr 2017 18:34:11 +0200 (CEST) Received: (qmail 82703 invoked by uid 500); 28 Apr 2017 16:34:08 -0000 Mailing-List: contact commits-help@beam.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@beam.apache.org Delivered-To: mailing list commits@beam.apache.org Received: (qmail 82481 invoked by uid 99); 28 Apr 2017 16:34:08 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Apr 2017 16:34:08 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id DD605183991 for ; Fri, 28 Apr 2017 16:34:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -99.202 X-Spam-Level: X-Spam-Status: No, score=-99.202 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, 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 (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id nvShuvKQQ8kF for ; Fri, 28 Apr 2017 16:34:05 +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 4DE225FAE8 for ; Fri, 28 Apr 2017 16:34:05 +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 83214E00B4 for ; Fri, 28 Apr 2017 16:34:04 +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 1210021D90 for ; Fri, 28 Apr 2017 16:34:04 +0000 (UTC) Date: Fri, 28 Apr 2017 16:34:04 +0000 (UTC) From: "Davor Bonaci (JIRA)" To: commits@beam.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BEAM-2110) HDFSFileSource throws IndexOutOfBoundsException when trying to read big file (gaming_data1.csv) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Fri, 28 Apr 2017 16:34:12 -0000 [ https://issues.apache.org/jira/browse/BEAM-2110?page=3Dcom.atlassian.= jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D15989= 117#comment-15989117 ]=20 Davor Bonaci commented on BEAM-2110: ------------------------------------ [~jbonofre], any chance you'd be able to help with this exception? > HDFSFileSource throws IndexOutOfBoundsException when trying to read big f= ile (gaming_data1.csv) > -------------------------------------------------------------------------= ---------------------- > > Key: BEAM-2110 > URL: https://issues.apache.org/jira/browse/BEAM-2110 > Project: Beam > Issue Type: Bug > Components: runner-flink, sdk-java-extensions > Environment: CentOS 7, Oracle JDK 8 > Reporter: Gergely Nov=C3=A1k > Assignee: Jean-Baptiste Onofr=C3=A9 > > I modified the wordcount example to read from HDFS with this code: > {code} > pipeline.apply(Read.from(HDFSFileSource.fromText(options.getInput()))) > {code} > This worked for a number of small files I tried with. But with the includ= ed example: gs://apache-beam-samples/game/gaming_data*.csv (moved to HDFS) = fails with the following trace: > {noformat} > Caused by: java.lang.IndexOutOfBoundsException > =09at java.nio.Buffer.checkBounds(Buffer.java:567) > =09at java.nio.ByteBuffer.get(ByteBuffer.java:686) > =09at java.nio.DirectByteBuffer.get(DirectByteBuffer.java:285) > =09at org.apache.hadoop.hdfs.RemoteBlockReader2.read(RemoteBlockReader2.j= ava:168) > =09at org.apache.hadoop.hdfs.DFSInputStream$ByteArrayStrategy.doRead(DFSI= nputStream.java:775) > =09at org.apache.hadoop.hdfs.DFSInputStream.readBuffer(DFSInputStream.jav= a:831) > =09at org.apache.hadoop.hdfs.DFSInputStream.readWithStrategy(DFSInputStre= am.java:891) > =09at org.apache.hadoop.hdfs.DFSInputStream.read(DFSInputStream.java:934) > =09at java.io.DataInputStream.read(DataInputStream.java:149) > =09at org.apache.hadoop.mapreduce.lib.input.UncompressedSplitLineReader.f= illBuffer(UncompressedSplitLineReader.java:59) > =09at org.apache.hadoop.util.LineReader.readDefaultLine(LineReader.java:2= 16) > =09at org.apache.hadoop.util.LineReader.readLine(LineReader.java:174) > =09at org.apache.hadoop.mapreduce.lib.input.UncompressedSplitLineReader.r= eadLine(UncompressedSplitLineReader.java:91) > =09at org.apache.hadoop.mapreduce.lib.input.LineRecordReader.skipUtfByteO= rderMark(LineRecordReader.java:144) > =09at org.apache.hadoop.mapreduce.lib.input.LineRecordReader.nextKeyValue= (LineRecordReader.java:184) > =09at org.apache.beam.sdk.io.hdfs.HDFSFileSource$HDFSFileReader.advance(H= DFSFileSource.java:492) > =09at org.apache.beam.sdk.io.hdfs.HDFSFileSource$HDFSFileReader.start(HDF= SFileSource.java:465) > =09at org.apache.beam.runners.flink.metrics.ReaderInvocationUtil.invokeSt= art(ReaderInvocationUtil.java:50) > =09at org.apache.beam.runners.flink.translation.wrappers.SourceInputForma= t.open(SourceInputFormat.java:79) > =09at org.apache.beam.runners.flink.translation.wrappers.SourceInputForma= t.open(SourceInputFormat.java:45) > =09at org.apache.flink.runtime.operators.DataSourceTask.invoke(DataSource= Task.java:144) > =09at org.apache.flink.runtime.taskmanager.Task.run(Task.java:655) > =09at java.lang.Thread.run(Thread.java:745) > {noformat} -- This message was sent by Atlassian JIRA (v6.3.15#6346)