flink Stream NoSuchMethodError:org.apache.flink.api.common.ExecutionConfig.setRestartStrategy

时间:2016-03-23 08:18:01

标签: apache-flink flink-streaming

  

java.lang.NoSuchMethodError:

   org.apache.flink.api.common.ExecutionConfig.setRestartStrategy(Lorg /阿帕奇/弗林克/ API /普通/ restartstrategy / RestartStrategies $ RestartStrategyConfiguration)
          在com.WriteIntoKafka.main(WriteIntoKafka.java:53)
          at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
          at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
          在java.lang.reflect.Method.invoke(Method.java:606)
          在org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:497)
          在org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:395)
          在org.apache.flink.client.program.Client.runBlocking(Client.java:252)
          在org.apache.flink.client.CliFrontend.executeProgramBlocking(CliFrontend.java:676)
          在org.apache.flink.client.CliFrontend.run(CliFrontend.java:326)
          在org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:978)
          在org.apache.flink.client.CliFrontend.main(CliFrontend.java:1028)

1 个答案:

答案 0 :(得分:2)

NoSuchMethodError通常表示版本不兼容。请检查Flink程序的版本和正在运行的Flink实例是否相同。