Exception in thread "main" java.lang.NoSuchFieldError: MODEat org.apache.flink.streaming.api.environ

运行flink scala 程序报错:

Exception in thread "main" java.lang.NoSuchFieldError: MODE
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.createLocalEnvironment(StreamExecutionEnvironment.java:1656)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.createLocalEnvironment(StreamExecutionEnvironment.java:1638)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.createLocalEnvironment(StreamExecutionEnvironment.java:1624)
	at org.apache.flink.streaming.api.environment.StreamExecutionEnvironment.getExecutionEnvironment(StreamExecutionEnvironment.java:1610)
	at org.apache.flink.streaming.api.scala.StreamExecutionEnvironment$.getExecutionEnvironment(StreamExecutionEnvironment.scala:763)
	at com.windows.FlinkSocketApplication01$.main(FlinkSocketApplication01.scala:11)
	at com.windows.FlinkSocketApplication01.main(FlinkSocketApplication01.scala)

原因是导入了java的pom文件报错导致的依赖冲突,将

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