Abacn commented on issue #25794:
URL: https://github.com/apache/beam/issues/25794#issuecomment-1472182104

   I compressed the .avro and the problem still exists:
   ```
   Exception in thread "main" 
org.apache.beam.sdk.Pipeline$PipelineExecutionException: 
java.lang.ClassCastException: class 
java.nio.channels.Channels$ReadableByteChannelImpl cannot be cast to class 
java.nio.channels.SeekableByteChannel 
(java.nio.channels.Channels$ReadableByteChannelImpl and 
java.nio.channels.SeekableByteChannel are in module java.base of loader 
'bootstrap')
           at 
org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:374)
           at 
org.apache.beam.runners.direct.DirectRunner$DirectPipelineResult.waitUntilFinish(DirectRunner.java:342)
           at 
org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:218)
           at 
org.apache.beam.runners.direct.DirectRunner.run(DirectRunner.java:67)
           at org.apache.beam.sdk.Pipeline.run(Pipeline.java:323)
           at org.apache.beam.sdk.Pipeline.run(Pipeline.java:309)
           at beam.demo.Demo.main(Demo.java:59)
   Caused by: java.lang.ClassCastException: class 
java.nio.channels.Channels$ReadableByteChannelImpl cannot be cast to class 
java.nio.channels.SeekableByteChannel 
(java.nio.channels.Channels$ReadableByteChannelImpl and 
java.nio.channels.SeekableByteChannel are in module java.base of loader 
'bootstrap')
           at 
org.apache.beam.sdk.io.AvroSource$AvroReader.startReading(AvroSource.java:743)
           at 
org.apache.beam.sdk.io.CompressedSource$CompressedReader.startReading(CompressedSource.java:449)
           at 
org.apache.beam.sdk.io.FileBasedSource$FileBasedReader.startImpl(FileBasedSource.java:479)
           at 
org.apache.beam.sdk.io.OffsetBasedSource$OffsetBasedReader.start(OffsetBasedSource.java:252)
           at 
org.apache.beam.sdk.io.ReadAllViaFileBasedSource$ReadFileRangesFn.process(ReadAllViaFileBasedSource.java:140)
   
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to