[ 
https://issues.apache.org/jira/browse/KAFKA-2030?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14368224#comment-14368224
 ] 

Ewen Cheslack-Postava commented on KAFKA-2030:
----------------------------------------------

It looks like the homebrew bottle was compiled with Java 8 and you have a 
different version. The homebrew package isn't maintained here. The packaging 
script that generates the package is at 
https://github.com/Homebrew/homebrew/blob/master/Library/Formula/kafka.rb and 
you'll want to file a bug against that repository. Not sure if homebrew has a 
build_depends in addition to their depends settings, which is probably how 
you'd have to enforce something like building with JDK6 to get full 
compatibility. Not sure which version you're trying to run with, but it looks 
like they are only supporting 1.7+, whereas Kafka can still be built with JDK6 
so even if they fix the bottle to match the formula it's possible it still 
wouldn't work for you.

You might also want to look at: 
https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Bottles.md 
You could probably fix this by just turning off bottles. It'll have to build 
everything from scratch, but should definitely be compatible with whatever Java 
version you're using.

> Creating a topic cause Unsupported major.minor version 52.0
> -----------------------------------------------------------
>
>                 Key: KAFKA-2030
>                 URL: https://issues.apache.org/jira/browse/KAFKA-2030
>             Project: Kafka
>          Issue Type: Bug
>          Components: admin
>    Affects Versions: 0.8.2.0
>         Environment: OS X 10.9.5, scala 2.11.6, zookeeper 3.4.6_1, java 
> 1.7.0_55
>            Reporter: Jeff Fogarty
>            Priority: Blocker
>
> I installed Kafka via brew.  
> I attempt the following;
> kafka-topics.sh --zookeeper localhost:2181 --create --topic zerg.hydra 
> --partitions 3 --replication-factor 2
> and get
> Error while executing topic command 
> org/apache/kafka/common/protocol/types/Schema : Unsupported major.minor 
> version 52.0
> java.lang.UnsupportedClassVersionError: 
> org/apache/kafka/common/protocol/types/Schema : 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 kafka.server.OffsetManager$.<init>(OffsetManager.scala:357)
>       at kafka.server.OffsetManager$.<clinit>(OffsetManager.scala)
>       at kafka.common.Topic$.<init>(Topic.scala:29)
>       at kafka.common.Topic$.<clinit>(Topic.scala)
>       at 
> kafka.admin.AdminUtils$.createOrUpdateTopicPartitionAssignmentPathInZK(AdminUtils.scala:181)
>       at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:172)
>       at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:93)
>       at kafka.admin.TopicCommand$.main(TopicCommand.scala:55)
>       at kafka.admin.TopicCommand.main(TopicCommand.scala)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to