You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@beam.apache.org by GitBox <gi...@apache.org> on 2022/06/04 20:06:35 UTC
[GitHub] [beam] damccorm opened a new issue, #20905: PubsubLiteIO.read() fails in DataflowRunner v1 due to lack of BundleFinalizer support
damccorm opened a new issue, #20905:
URL: https://github.com/apache/beam/issues/20905
Reading from a Pub/Sub Lite subscription using PubsubLiteIO fails with DataflowRunner. It works in DirectRunner.
```
import org.apache.beam.sdk.io.gcp.pubsublite.PubsubLiteIO;
//..
pipeline
.apply("Read
From Lite", PubsubLiteIO.read(subscriberOpitons))
.apply("Convert and print", MapElements.into(TypeDescriptors.strings()).via(
(SequencedMessage sequencedMessage) -> {
String data = sequencedMessage.getMessage().getData().toStringUtf8();
LOG.info("Received: " + data);
return data;
}
));
```
```
java.lang.UnsupportedOperationException: BundleFinalizer unsupported by non-portable Dataflow.
at
org.apache.beam.runners.dataflow.worker.SplittableProcessFnFactory$SplittableDoFnRunnerFactory.lambda$createRunner$2(SplittableProcessFnFactory.java:170)
at
org.apache.beam.runners.dataflow.worker.repackaged.org.apache.beam.runners.core.OutputAndTimeBoundedSplittableProcessElementInvoker$1.bundleFinalizer(OutputAndTimeBoundedSplittableProcessElementInvoker.java:195)
at
org.apache.beam.sdk.io.gcp.pubsublite.PerSubscriptionPartitionSdf$DoFnInvoker.invokeProcessElement(Unknown
Source)
at org.apache.beam.runners.dataflow.worker.repackaged.org.apache.beam.runners.core.OutputAndTimeBoundedSplittableProcessElementInvoker.invokeProcessElement(OutputAndTimeBoundedSplittableProcessElementInvoker.java:123)
at
org.apache.beam.runners.dataflow.worker.repackaged.org.apache.beam.runners.core.SplittableParDoViaKeyedWorkItems$ProcessFn.processElement(SplittableParDoViaKeyedWorkItems.java:523)
```
Imported from Jira [BEAM-12085](https://issues.apache.org/jira/browse/BEAM-12085). Original Jira may contain additional context.
Reported by: tianzi.
--
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: github-unsubscribe@beam.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org