ton3r commented on issue #30152:
URL: https://github.com/apache/beam/issues/30152#issuecomment-1921837087

   I was able to "bend the spoon" by java reflection and set the package 
private things to accessible, or writing an own `CustomPulsarWriter` in the 
`package org.apache.beam.sdk.io.pulsar;`  to extend abstract classes.. But now
   ```
   
   Exception in thread "main" java.lang.IllegalArgumentException: 
org.apache.beam.sdk.io.pulsar.WriteToPulsarDoFn: Non-splittable, but annotated 
as @UnboundedPerElement
        at 
org.apache.beam.sdk.transforms.reflect.DoFnSignatures$ErrorReporter.throwIllegalArgument(DoFnSignatures.java:2409)
        at 
org.apache.beam.sdk.transforms.reflect.DoFnSignatures$ErrorReporter.checkArgument(DoFnSignatures.java:2415)
        at 
org.apache.beam.sdk.transforms.reflect.DoFnSignatures.inferBoundedness(DoFnSignatures.java:917)
        at 
org.apache.beam.sdk.transforms.reflect.DoFnSignatures.parseSignature(DoFnSignatures.java:848)
        at 
java.base/java.util.concurrent.ConcurrentHashMap.computeIfAbsent(ConcurrentHashMap.java:1737)
        at 
org.apache.beam.sdk.transforms.reflect.DoFnSignatures.getSignature(DoFnSignatures.java:301)
        at org.apache.beam.sdk.transforms.ParDo.validate(ParDo.java:614)
        at org.apache.beam.sdk.transforms.ParDo.of(ParDo.java:403)
        at 
org.apache.beam.sdk.io.pulsar.PulsarIO$Write.expand(PulsarIO.java:180)
        at 
org.apache.beam.sdk.io.pulsar.PulsarIO$Write.expand(PulsarIO.java:151)
        at org.apache.beam.sdk.Pipeline.applyInternal(Pipeline.java:548)
        at org.apache.beam.sdk.Pipeline.applyTransform(Pipeline.java:482)
        at org.apache.beam.sdk.values.PCollection.apply(PCollection.java:360)
        at de.seepex.bucketdataflow.PubSubToGcs.main(PubSubToGcs.java:103)
   ```


-- 
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