Prerequisites – Java JDK
Although Kafka is written in Scala, you do not need to install it. Only Java JDK is required.
Download Java JDK:
Install it and make sure you update the PATH environment variable according to instructions:
Get the source
Do either the Clone-and-Checkout step or the Download step:
git clone http://git-wip-us.apache.org/repos/asf/kafka.git kafka cd kafka git checkout -b 0.8 remotes/origin/0.8
Download from https://github.com/apache/kafka ("Download Zip" button) and unpack to the folder kafka. Execute:
.\sbt.bat update .\sbt.bat package .\sbt.bat assembly-package-dependency
Update the bat files
Unfortunately the bat files for Kafka 0.8.0 are full of errors, so in order to start Zookeeper and Kafka they must be replaced. See Step 1, Update the bat files.
Update config for Windows
Update the config files according to Step 1, Update Config.
To run, see Step 2, Start the server.
See Running Kafka 0.8.0 on Windows for more info on how to set up and run Kafka using the binary distribution.
Nice walkthrough Håkan!ReplyDelete
Since I'm sitting behind proxy I had to change sbt.bat with:
java -Dhttp.proxyHost=proxy_ip -Dhttp.proxyPort=8080 -Dhttps.proxyHost=proxy_ip -Dhttps.proxyPort=8080 ...