Abacn commented on PR #34289:
URL: https://github.com/apache/beam/pull/34289#issuecomment-2722822617
Tested on Dataflow v2 + Java 21 with a pipeline uses "jdk.incubator.vector"
Beam 2.63.0 (job Id `2025-03-13_15_08_35-746015370466363900`):
```
"org.apache.beam.sdk.util.UserCodeException: java.lang.NoClassDefFoundError:
jdk/incubator/vector/Vector
at
org.apache.beam.sdk.util.UserCodeException.wrap(UserCodeException.java:39)
at
com.github.abacn.VectorTest$1$DoFnInvoker.invokeProcessElement(Unknown Source)
```
with this change (build java core locally, build a custom container, add
pipeline option `--sdkContainerImage=gcr.io/.../beam_java21_sdk:2.63.0-custom
--jdkAddRootModules=jdk.incubator.vector`), it succeeded. job id:
`2025-03-13_15_22_36-15628134386308323283`
--
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]