记录:Flink报错

Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/flink/runtime/jobgraph/InputFormatVertex

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flink/runtime/jobgraph/InputFormatVertex
	at org.apache.flink.streaming.api.graph.StreamGraph.getJobGraph(StreamGraph.java:677)
	at org.apache.flink.optimizer.plan.StreamingPlan.getJobGraph(StreamingPlan.java:40)
	at org.apache.flink.streaming.api.environment.LocalStreamEnvironment.execute(LocalStreamEnvironment.java:92)
	at org.apache.flink.streaming.api.scala.StreamExecutionEnvironment.execute(StreamExecutionEnvironment.scala:654)
	at com.jy.flink.FlinkAndValueState$.main(FlinkAndValueState.scala:53)
	at com.jy.flink.FlinkAndValueState.main(FlinkAndValueState.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.flink.runtime.jobgraph.InputFormatVertex
	at java.net.URLClassLoader.findClass(URLClassLoader.java:382)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:424)
	at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)
	at java.lang.ClassLoader.loadClass(ClassLoader.java:357)
	... 6 more

原因:

jar包冲突,看看pom文件的各种jar包。
如果不知道是哪个jar包冲突,打开idea依赖树查看。不知道怎么打开依赖树,请前往我另一篇博文。

https://blog.csdn.net/weixin_45316851/article/details/105291688

Flink启动后,idea后台滚动刷屏信息,但是不报错

个人认为原因:
1.是否将flink代码 放在springboot框架里了
2.没有启动springboot启动类

你可能感兴趣的:(#,Flink)