Error: kafka/Kafka : Unsupported major.minor version 52.0

0 votes

Hi Guys,

I installed kafka in my system and also configured zookeeper. But I am getting the below error, when tried to start kafka-server.

$ bin/kafka-server-start.sh config/server.properties Exception in thread "main"
java.lang.UnsupportedClassVersionError: kafka/Kafka : Unsupported major.minor version 52.0 at
java.lang.ClassLoader.defineClass1(Native Method) at 
java.lang.ClassLoader.defineClass(ClassLoader.java:800) at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:142) at 
java.net.URLClassLoader.defineClass(URLClassLoader.java:449) at
java.net.URLClassLoader.access$100(URLClassLoader.java:71) at
java.net.URLClassLoader$1.run(URLClassLoader.java:361) at 
java.net.URLClassLoader$1.run(URLClassLoader.java:355) at
java.security.AccessController.doPrivileged(Native Method) at
java.net.URLClassLoader.findClass(URLClassLoader.java:354) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:425) at 
sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308) at 
java.lang.ClassLoader.loadClass(ClassLoader.java:358) at 
sun.launcher.LauncherHelper.checkAndLoadMain(LauncherHelper.java:482)

Thank You

Mar 31 in Apache Kafka by akhtar
• 10,580 points

edited Mar 31 by akhtar 57 views

1 answer to this question.

0 votes

Hi@akhtar,

As the above error shows that the version is not supported with your current environment. 

java.lang.UnsupportedClassVersionError: kafka/Kafka : Unsupported major.minor version 52.0 

So, uninstall this version and try with different version.

Hope it will help.

Thank You

answered Mar 31 by MD
• 23,050 points

Related Questions In Apache Kafka

0 votes
1 answer

Re-balancing error while reading messages from Kafka.

rebalance.backoff.ms defines the time for which Kafka ...READ MORE

answered Jul 9, 2018 in Apache Kafka by Shubham
• 13,380 points
881 views
0 votes
1 answer

How to delete a topic in Kafka 0.8.1.1?

Deleting topic isn't always working in 0.8.1.1 Deletion ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 10,920 points
449 views
0 votes
1 answer

Is there any change in consumer offsets if a new partition(s) is added to a Kafka topic?

Yes, it stays the same. An offset is ...READ MORE

answered Jul 9, 2018 in Apache Kafka by nitinrawat895
• 10,920 points
576 views
0 votes
1 answer

error during KafkaServerStartable startup. Prepare to shutdown (kafka.server.KafkaServerStartable)

Hi@akhtar, This error occurs because zookeeper is running already. So ...READ MORE

answered Mar 31 in Apache Kafka by MD
• 23,050 points
42 views
+1 vote
12 answers

How can I delete all the messages from a Kafka topic?

As of kafka 2.3.0 version, there is ...READ MORE

answered Sep 8, 2019 in Apache Kafka by Brajkishore
• 240 points
87,643 views
0 votes
1 answer

How to purge Kafka Topic?

For your case what you can do ...READ MORE

answered Sep 4, 2018 in Apache Kafka by nitinrawat895
• 10,920 points
967 views
+1 vote
1 answer

How to check Kafka version?

Hi@akhtar, Actually, in kafka there is no command ...READ MORE

answered Feb 10 in Apache Kafka by MD
• 23,050 points
5,027 views