NoClassDefFoundError: org/apache/flink/runtime/state/StateBackend

jar包冲突引起的… …

Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/flink/runtime/state/StateBackend
	at org.apache.flink.streaming.api.scala.StreamExecutionEnvironment$.getExecutionEnvironment(StreamExecutionEnvironment.scala:763)
	at test$.main(test.scala:11)
	at test.main(test.scala)
Caused by: java.lang.ClassNotFoundException: org.apache.flink.runtime.state.StateBackend
	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)
	... 3 more

上述问题jar包冲突导致



    org.apache.bahir
    flink-connector-redis_2.11
    1.0

该jar包与flink1.8.0(1.7.0)冲突,可以使用下面jar包代替

 
     org.apache.flink
     flink-connector-redis_2.10
     1.1.5
 

你可能感兴趣的:(flink)