As stated in the topic description, I’m trying to get Kafka 0.8 running with Scala 2.9.2.
I was able to get a working version using the quick start for 0.8 (https://cwiki.apache.org/KAFKA/kafka-08-quick-start.html), but it is compiled against Scala 2.8.0 by default.
I tried to modify the step
./sbt package
to
./sbt "++2.9.2 package"
it compiles without errors but during start it complains that it cannot find the main class.
/tmp/kafka-8-test/kafka[0.8]$ bin/kafka-server-start.sh onfig/server1.properties
Error: Could not find or load main class kafka.Kafka
Any help will be highly appreciated.
The problem is that the bin/kafka-server-start.sh script uses bin/kafka-run-class.sh to execute the generated jar file.
This script has hard-coded versions, so you need to customize it like this: