java.lang.NoSuchMethodError: org.apache.flink.util.NetUtils.getHostnamePort(Ljava/lang/String;)Ljava/net/URL;

Stack Overflow | Carlos | 1 year ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    flink+Kafka: getHostnamePort

    Stack Overflow | 1 year ago | Carlos
    java.lang.NoSuchMethodError: org.apache.flink.util.NetUtils.getHostnamePort(Ljava/lang/String;)Ljava/net/URL;

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoSuchMethodError

      org.apache.flink.util.NetUtils.getHostnamePort(Ljava/lang/String;)Ljava/net/URL;

      at org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.getPartitionsForTopic()
    2. org.apache.flink
      FlinkKafkaConsumer082.<init>
      1. org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.getPartitionsForTopic(FlinkKafkaConsumer.java:592)
      2. org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.<init>(FlinkKafkaConsumer.java:280)
      3. org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer082.<init>(FlinkKafkaConsumer082.java:49)
      3 frames
    3. Toletum.pruebas
      LeeKafka.main
      1. Toletum.pruebas.LeeKafka.main(LeeKafka.java:22)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:606)
      4 frames
    5. flink-clients
      CliFrontend.main
      1. org.apache.flink.client.program.PackagedProgram.callMainMethod(PackagedProgram.java:497)
      2. org.apache.flink.client.program.PackagedProgram.invokeInteractiveModeForExecution(PackagedProgram.java:395)
      3. org.apache.flink.client.program.Client.runBlocking(Client.java:252)
      4. org.apache.flink.client.CliFrontend.executeProgramBlocking(CliFrontend.java:676)
      5. org.apache.flink.client.CliFrontend.run(CliFrontend.java:326)
      6. org.apache.flink.client.CliFrontend.parseParameters(CliFrontend.java:978)
      7. org.apache.flink.client.CliFrontend.main(CliFrontend.java:1028)
      7 frames