https://github.com/satendrakumar/play-kafka-example
https://github.com/satendrakumar/play-kafka-example
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/satendrakumar/play-kafka-example
- Owner: satendrakumar
- License: other
- Created: 2016-09-08T05:37:16.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-09-08T06:10:34.000Z (over 8 years ago)
- Last Synced: 2025-01-30T15:51:28.353Z (4 months ago)
- Language: Scala
- Size: 1010 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# play-kafka-example
#### Steps to Install and Run zookeeper and kafka on your system :
Step 1: Download kafka from [here](http://mirror.fibergrid.in/apache/kafka/0.10.0.0/kafka_2.11-0.10.0.1.tgz)
Once you download it, Set number of log partitions per topic to 8 in server.properties
num.partitions=8
Step2: Extract it
$ tar -xzf kafka_2.11-0.10.0.1.tgz
$ cd kafka_2.11-0.10.0.1Step3: Start the server
Start zookeeper:
$ bin/zookeeper-server-start.sh config/zookeeper.properties
Start Kafka server:
$ bin/kafka-server-start.sh config/server.properties
#### Clone Project:
$ git clone [email protected]:satendrakumar06/play-kafka-example.git
$ cd play-kafka-example
$ ./activator run
####Start Consumer & producer:
$ curl http://localhost:9000/start