You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@beam.apache.org by "Ismaël Mejía (JIRA)" <ji...@apache.org> on 2017/08/22 12:50:00 UTC

[jira] [Created] (BEAM-2790) Error while reading from Amazon S3 via Hadoop File System

Ismaël Mejía created BEAM-2790:
----------------------------------

             Summary: 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: Ismaël Mejía


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)