Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jonasjurczok/kafka-consumer-test
https://github.com/jonasjurczok/kafka-consumer-test
Last synced: 28 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/jonasjurczok/kafka-consumer-test
- Owner: JonasJurczok
- Created: 2016-01-07T20:56:52.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2016-01-07T20:59:27.000Z (almost 9 years ago)
- Last Synced: 2023-04-18T23:52:02.966Z (over 1 year ago)
- Language: Java
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Kafka test consumer
This is a simple implementation of a kafka consumer.
## How to run
First you will need a running kafka instance. The one from [spotify](https://github.com/JonasJurczok/docker-kafka) is recommended.
If you have the kafka "cluster" up and running just issue a ``mvn clean verify && java -cp target/consumertest-1-jar-with-dependencies.jar de.zalando.kafka.consumertest.Main``.
Depending on how you have set up your kafka cluster you might need to change the properties in the beginning of the Main class.
This consumer will start up, subscribe to the "main" topic in the kafka cluster and then start processing all events from the beginning of time. You can alter this behaviour by removing the ``seekToBeginning`` line in the Main class.