[
https://issues.apache.org/jira/browse/FLINK-32821?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17755548#comment-17755548
]
Weihua Hu commented on FLINK-32821:
-----------------------------------
Hi, [~afedulov] Thanks for you attention.
the change in
"[https://github.com/apache/flink/pull/23079/files#diff-c7da2a9d0258717dbd97328195d580aedc3fe51240aeb4fc0f292d946dcdb4af]"
only bundle datagen connector to flink-example-streaming.jar, but it is not
the final jar we used. You can check the final jar in
target/TopSpeedWindowing.jar, there is no datagen related classes in it.
to reproduce this problem, we need a standalone cluster, and use './bin/flink
run examples/streaming/TopSpeedWindowing.jar' to run this example
This issue could not reproduce by IDE, because IDE will add the dependency to
classpathes automaticlly
> Streaming examples failed to execute due to error in packaging
> --------------------------------------------------------------
>
> Key: FLINK-32821
> URL: https://issues.apache.org/jira/browse/FLINK-32821
> Project: Flink
> Issue Type: Bug
> Components: Examples
> Affects Versions: 1.18.0
> Reporter: Zhanghao Chen
> Assignee: Zhanghao Chen
> Priority: Major
> Labels: pull-request-available
>
> 7 out of the 8 streaming examples failed to run:
> * Iteration & SessionWindowing & SocketWindowWordCount & WindowJoin failed
> to run due to java.lang.NoClassDefFoundError:
> org/apache/flink/streaming/examples/utils/ParameterTool
> * MatrixVectorMul & TopSpeedWindowing & StateMachineExample failed to run
> due to: Caused by: java.lang.ClassNotFoundException:
> org.apache.flink.connector.datagen.source.GeneratorFunction
> The NoClassDefFoundError with ParameterTool is introduced by FLINK-32558
> Properly deprecate DataSet API - ASF JIRA (apache.org), and we'd better
> resolve FLINK-32820 ParameterTool is mistakenly marked as deprecated - ASF
> JIRA (apache.org) first before we come to a fix for this problem.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)