[ https://issues.apache.org/jira/browse/KAFKA-826?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dragos Manolescu updated KAFKA-826: ----------------------------------- Attachment: kafka-fix-for-826-complete.patch Hmm, it looks like for some reason the metrics JARs didn't end up on your CLASSPATH. Here's the same patch with one additional update that packages the required libraries into a single jar, kafka-assembly-0.8-SNAPSHOT-deps.jar. This change removes ALL references to ~/.ivy2/cache from the script and requires one additional step: execute the "assembly-package-dependency" sbt task (provided by the sbt-assembly plugin that was already included). Here are the steps: rm -rf ~/.ivy2/cache/ find . -name target | xargs rm -rf bash sbt update bash sbt package bash sbt assembly-package-dependency # NEW STEP bin/zookeeper-server-start.sh config/zookeeper.properties bin/kafka-server-start.sh config/server.properties I verified and the server starts up fine. Please LMK if you run into problems. Here's the output from assembly-package-dependency: % bash sbt assembly-package-dependency [info] Loading global plugins from /Users/dragos.manolescu/.sbt/plugins [info] Loading project definition from /Users/dragos.manolescu/Repos/kafka/project [info] Set current project to Kafka (in build file:/Users/dragos.manolescu/Repos/kafka/) [info] Including metrics-core-2.2.0.jar [info] Including scala-compiler.jar [info] Including zkclient-0.2.jar [info] Including metrics-annotation-2.2.0.jar [info] Including snappy-java-1.0.4.1.jar [info] Including log4j-1.2.15.jar [info] Including slf4j-api-1.7.2.jar [info] Including zookeeper-3.3.4.jar [info] Including jopt-simple-3.2.jar [info] Including slf4j-simple-1.6.4.jar [info] Including scala-library.jar [warn] Merging 'META-INF/NOTICE' with strategy 'rename' [warn] Merging 'org/xerial/snappy/native/README' with strategy 'rename' [warn] Merging 'META-INF/maven/org.xerial.snappy/snappy-java/LICENSE' with strategy 'rename' [warn] Merging 'LICENSE.txt' with strategy 'rename' [warn] Merging 'META-INF/LICENSE' with strategy 'rename' [warn] Merging 'META-INF/MANIFEST.MF' with strategy 'discard' [warn] Strategy 'discard' was applied to a file [warn] Strategy 'rename' was applied to 5 files [info] Packaging /Users/dragos.manolescu/Repos/kafka/core/target/scala-2.8.0/kafka-assembly-0.8-SNAPSHOT-deps.jar ... [info] Done packaging. [success] Total time: 44 s, completed Apr 8, 2013 10:58:33 AM > Make Kafka 0.8 depend on metrics 2.2.0 instead of 3.x > ----------------------------------------------------- > > Key: KAFKA-826 > URL: https://issues.apache.org/jira/browse/KAFKA-826 > Project: Kafka > Issue Type: Bug > Components: core > Affects Versions: 0.8 > Reporter: Neha Narkhede > Assignee: Dragos Manolescu > Priority: Blocker > Labels: build, kafka-0.8, metrics > Attachments: kafka-fix-for-826-complete.patch, > kafka-fix-for-826.patch, kafka-fix-for-826-take2.patch > > > In order to mavenize Kafka 0.8, we have to depend on metrics 2.2.0 since > metrics 3.x is a huge change as well as not an officially supported release. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira