Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tendant/simple-kafka-client
Not another kafka client libary, instead this is a collection of Clojure functions for Kafka client.
https://github.com/tendant/simple-kafka-client
Last synced: about 1 month ago
JSON representation
Not another kafka client libary, instead this is a collection of Clojure functions for Kafka client.
- Host: GitHub
- URL: https://github.com/tendant/simple-kafka-client
- Owner: tendant
- License: epl-1.0
- Created: 2018-01-30T19:52:10.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2021-08-04T21:38:16.000Z (over 3 years ago)
- Last Synced: 2024-07-26T19:38:14.666Z (4 months ago)
- Language: Clojure
- Homepage:
- Size: 34.2 KB
- Stars: 2
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# simple-kafka-client
A Clojure library designed to create and monitor Apache Kafka jobs.
# Usage
## Command line tools
### find-offsets
$ lein utils find-offsets group-id[ topic]
e.g.
$ lein utils find-offsets email-notification-group-id
$ lein utils find-offsets email-notification-group-id email-notification-topic
### reset-offset
$ lein utils reset-offset to-offset group-id[ topic comma-seperated-partitions]
e.g.
$ lein utils reset-offset 10 email-notification-group-id
$ lein utils reset-offset 10 email-notification-group-id email-notification-topic
$ lein utils reset-offset 10 email-notification-group-id email-notification-topic 0,1,2
### Keep in mind
1. Before reset offset, please use find-offsets to observe the current offsets and total size of partitions
2. Then, disable consumer jobs, and do the reset
3. Enable consumer jobs and run find-offsets to verify
# License
Copyright © 2018 FIXME
Distributed under the Eclipse Public License either version 1.0 or (at
your option) any later version.