1

java.lang.NoSuchMethodError:

org.apache.flink.api.common.ExecutionConfig.setRestartStrategy(Lorg/apache/flink/api/common/restartstrategy/RestartStrategies$RestartStrategyConfiguration;)
at 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)
at java.lang.reflect.Method.invoke(Method.java:606)
at org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:497)
at org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:395)
at org.apache.flink.client.program.Client.runBlocking(Client.java:252)
at org.apache.flink.client.CliFrontend.executeProgramBlocking(CliFrontend.java:676)
at org.apache.flink.client.CliFrontend.run(CliFrontend.java:326)
at org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:978)
at org.apache.flink.client.CliFrontend.main(CliFrontend.java:1028)

3
  • Im trying to run the the example of flink-streaming ,but it show this issue ,I also run java -jar *** it is fine Commented Mar 23, 2016 at 8:19
  • Mind providing the code where the error occurs? Commented Mar 23, 2016 at 8:25
  • Possible duplicate of java.lang.NoSuchMethodError in Flink Commented Oct 25, 2017 at 12:47

1 Answer 1

6

NoSuchMethodError usually indicates incompatible versions. Please check that the versions of the Flink program and the running Flink instance are the same.

Sign up to request clarification or add additional context in comments.

1 Comment

tks for ur help ,its really the incompatible versions like what u said.it working now

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.