- Download Kafka
- Start Zookeeper
- set port 2181
- Start Kafka
- Set properties file
zookeeper.connect=localhost:2181
- Set properties file
You can also use a docker instance like this one : https://github.com/spotify/docker-kafka On mac :
boot2docker start
$(boot2docker shellinit)
docker run -p 2181:2181 -p 9092:9092 --env ADVERTISED_HOST=`boot2docker ip` --env ADVERTISED_PORT=9092 spotify/kafka
export ZOOKEEPER=`boot2docker ip`:2181
export KAFKA=`boot2docker ip`:9092
- modify ./fixtures/integration.yml with values in $KAKFA and $ZOOKEEPER
bundle exec jruby -S rspec spec/integration
bundle install
rake default
orrake compile
and thenrake spec
rake spec:intregration