org.apache.kafka.common.KafkaException

If you like a tip written by other Samebug users, mark is as helpful! Marks help our algorithm provide you better solutions and also help other users.
tip

This might be an issue with the file location in the Spark submit command. Try it with "spark-submit --master spark://master:7077 hello_world_from_pyspark.py {file location}"

tip

Check if you've set a name in Application -> Run. If you didn't, the generated XML is gonna have missing information and then this exception will be thrown.

tip

A few things cause this exception: 1) Check if you have all jars and if they're in the correct path when running. 2) Your classpath might be broken, you can define it in the command line with "java -cp yourClassPath" or at your IDE if you're using one.

tip

Needs to add netty-transport-native-epoll with a OS classifier to the classpath, it's not included in netty-all

You have a different solution? A short tip here would help you and many other users who saw this issue last week.

  • GitHub comment 1196#192810028
    via GitHub by m-menon
    ,
  • JUnit Installation fail on Linux
    via by Unknown author,
  • GitHub comment 1500#132582893
    via GitHub by 0x00B1
    ,
    • org.apache.kafka.common.KafkaException: Failed to construct kafka consumer at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:702)[na:na] at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:557)[na:na] at org.springframework.kafka.core.DefaultKafkaConsumerFactory.createKafkaConsumer(DefaultKafkaConsumerFactory.java:73)[na:na] at org.springframework.kafka.core.DefaultKafkaConsumerFactory.createConsumer(DefaultKafkaConsumerFactory.java:69)[na:na] at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.<init>(KafkaMessageListenerContainer.java:284)[na:na] at org.springframework.kafka.listener.KafkaMessageListenerContainer$ListenerConsumer.<init>(KafkaMessageListenerContainer.java:222)[na:na] at org.springframework.kafka.listener.KafkaMessageListenerContainer.doStart(KafkaMessageListenerContainer.java:179)[na:na] at org.springframework.kafka.listener.AbstractMessageListenerContainer.start(AbstractMessageListenerContainer.java:204)[na:na] at org.springframework.context.support.DefaultLifecycleProcessor.doStart(DefaultLifecycleProcessor.java:173)[spring-context-4.1.7.RELEASE.jar:4.1.7.RELEASE] Caused by: org.apache.kafka.common.KafkaException: org.apache.kafka.clients.consumer.RangeAssignor ClassNotFoundException exception occured at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:227)[na:na] at org.apache.kafka.clients.consumer.KafkaConsumer.<init>(KafkaConsumer.java:637)[na:na] ... 9 more Caused by: java.lang.ClassNotFoundException: org.apache.kafka.clients.consumer.RangeAssignor at java.net.URLClassLoader.findClass(URLClassLoader.java:381)[na:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:424)[na:1.8.0_77] at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:331)[na:1.8.0_77] at java.lang.ClassLoader.loadClass(ClassLoader.java:357)[na:1.8.0_77] at java.lang.Class.forName0(Native Method)[na:1.8.0_77] at java.lang.Class.forName(Class.java:348)[na:1.8.0_77] at org.apache.kafka.common.utils.Utils.newInstance(Utils.java:332)[na:na] at org.apache.kafka.common.config.AbstractConfig.getConfiguredInstances(AbstractConfig.java:225)

    Users with the same issue

    zsamboki
    1 times, last one,
    kimihanif
    1 times, last one,
    tvrmsmith
    1 times, last one,
    osvzs
    1 times, last one,
    pulse00
    1 times, last one,
    1579 more bugmates