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, 2020 in Apache Kafka by akhtar
• 38,260 points

edited Mar 31, 2020 by akhtar 2,829 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.

Get your Kafka certification today to become certified professional

Thank You

answered Mar 31, 2020 by MD
• 95,460 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 10, 2018 in Apache Kafka by Shubham
• 13,490 points
2,857 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
• 11,380 points
1,754 views
0 votes
1 answer
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, 2020 in Apache Kafka by MD
• 95,460 points
4,364 views
+1 vote
14 answers

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

To delete all the messages from a Kafka topic.  There are many approach ...READ MORE

answered Jun 19, 2020 in Apache Kafka by PAWAN
• 380 points
228,905 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
• 11,380 points
2,677 views
0 votes
1 answer
+1 vote
2 answers

How to check Kafka version?

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

answered Feb 10, 2020 in Apache Kafka by MD
• 95,460 points
47,456 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP