Skip to content

mwalden/scala-kafka

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

scala-kafka

Quick up and running using Scala for Apache Kafka

Use Vagrant to get up and running.

  1. Install Vagrant http://www.vagrantup.com/
  2. Install Virtual Box https://www.virtualbox.org/

In the main kafka folder

  1. vagrant up
  2. ./gradlew test

once this is done

  • Zookeeper will be running 192.168.86.5
  • Broker 1 on 192.168.86.10
  • All the tests in src/test/scala/* should pass

If you want you can login to the machines using vagrant ssh but you don't need to.

You can access the brokers and zookeeper by their IP from your local without having to go into vm.

e.g.

bin/kafka-console-producer.sh --broker-list 192.168.86.10:9092 --topic

bin/kafka-console-consumer.sh --zookeeper 192.168.86.5:2181 --topic --from-beginning

About

Quick up and running using Scala for Apache Kafka

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published