Follow below link to install Zookeper and Kafka Server https://medium.com/@Ankitthakur/apache-kafka-installation-on-mac-using-homebrew-a367cdefd273
- Install zookeper
- Install kafka server
- Uncomment line
listeners=PLAINTEXT://:9092
in/usr/local/etc/kafka/server.properties
- Command to start zookeper in mac (Installed through brew)
zookeeper-server-start /usr/local/etc/kafka/zookeeper.properties
- Command to start kafka server in mac
kafka-server-start /usr/local/etc/kafka/server.properties
- Start consumer app
- Start producer app
- Test api
curl -X POST \
'http://localhost:9000/kafka/publish?message=test123&limit=100' \
-H 'content-type: application/json' \
-d '{
}'