前提:用flink1.14 执行官网的Building your own Flink ML project 例子
加了一堆maven依赖,还是报错…
Caused by: org.apache.flink.util.FlinkException: Error from OperatorCoordinator
... 44 more
Caused by: java.lang.AbstractMethodError: Method org/apache/flink/iteration/operator/coordinator/HeadOperatorCoordinator.subtaskReady(ILorg/apache/flink/runtime/operators/coordination/OperatorCoordinator$SubtaskGateway;)V is abstract
at org.apache.flink.iteration.operator.coordinator.HeadOperatorCoordinator.subtaskReady(HeadOperatorCoordinator.java)
at org.apache.flink.runtime.operators.coordination.OperatorCoordinatorHolder.notifySubtaskReady(OperatorCoordinatorHolder.java:412)
... 43 more
然后:放弃了,还是用官网给的1.17.1
最后:就没问题了,成功运行。