java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

flink-user | Madhukar Thota | 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 scala error

    flink-user | 1 year ago | Madhukar Thota
    java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class
  2. 0

    flink kafka scala error

    flink-user | 1 year ago | Madhukar Thota
    java.lang.NoClassDefFoundError: scala/collection/GenTraversableOnce$class

    1 unregistered visitors

    Root Cause Analysis

    1. java.lang.NoClassDefFoundError

      scala/collection/GenTraversableOnce$class

      at kafka.utils.Pool.<init>()
    2. Apache Kafka
      SimpleConsumer.<init>
      1. kafka.utils.Pool.<init>(Pool.scala:28)
      2. kafka.consumer.FetchRequestAndResponseStatsRegistry$.<init>(FetchRequestAndResponseStats.scala:60)
      3. kafka.consumer.FetchRequestAndResponseStatsRegistry$.<clinit>(FetchRequestAndResponseStats.scala)
      4. kafka.consumer.SimpleConsumer.<init>(SimpleConsumer.scala:39)
      5. kafka.javaapi.consumer.SimpleConsumer.<init>(SimpleConsumer.scala:34)
      5 frames
    3. org.apache.flink
      FlinkKafkaConsumer082.<init>
      1. org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.getPartitionsForTopic(FlinkKafkaConsumer.java:691)
      2. org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer.<init>(FlinkKafkaConsumer.java:281)
      3. org.apache.flink.streaming.connectors.kafka.FlinkKafkaConsumer082.<init>(FlinkKafkaConsumer082.java:49)
      3 frames
    4. com.lmig.datahub
      Main.main
      1. com.lmig.datahub.heka.Main.main(Main.java:39)
      1 frame
    5. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    6. 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