beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (BEAM-2790) Error while reading from Amazon S3 via Hadoop File System
Date Fri, 15 Sep 2017 15:09:00 GMT

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

ASF GitHub Bot commented on BEAM-2790:
--------------------------------------

Github user asfgit closed the pull request at:

    https://github.com/apache/beam/pull/3850


> Error while reading from Amazon S3 via Hadoop File System
> ---------------------------------------------------------
>
>                 Key: BEAM-2790
>                 URL: https://issues.apache.org/jira/browse/BEAM-2790
>             Project: Beam
>          Issue Type: Bug
>          Components: sdk-java-extensions
>    Affects Versions: 2.0.0, 2.1.0
>            Reporter: Ismaël Mejía
>            Assignee: Etienne Chauchot
>             Fix For: 2.2.0
>
>
> If you try to use hadoop-aws with Beam to read from AWS S3 it breaks because S3AInputStream
(the implementation of Hadoop's FSDataInputStream) is not ByteBufferReadable. 
> {code}
> Exception in thread "main" java.lang.UnsupportedOperationException: Byte-buffer read
unsupported by input stream
> 	at org.apache.hadoop.fs.FSDataInputStream.read(FSDataInputStream.java:146)
> 	at org.apache.beam.sdk.io.hdfs.HadoopFileSystem$HadoopSeekableByteChannel.read(HadoopFileSystem.java:192)
> 	at org.apache.beam.sdk.io.TextSource$TextBasedReader.tryToEnsureNumberOfBytesInBuffer(TextSource.java:232)
> 	at org.apache.beam.sdk.io.TextSource$TextBasedReader.findSeparatorBounds(TextSource.java:166)
> 	at org.apache.beam.sdk.io.TextSource$TextBasedReader.readNextRecord(TextSource.java:198)
> 	at org.apache.beam.sdk.io.FileBasedSource$FileBasedReader.advanceImpl(FileBasedSource.java:481)
> 	at org.apache.beam.sdk.io.FileBasedSource$FileBasedReader.startImpl(FileBasedSource.java:476)
> 	at org.apache.beam.sdk.io.OffsetBasedSource$OffsetBasedReader.start(OffsetBasedSource.java:261)
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message