-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
32 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,32 @@ | ||
kt - a Kafka command line tool | ||
# kt - a Kafka tool | ||
|
||
## Example usage: | ||
|
||
$ kt -help | ||
Usage of kt: | ||
-brokers string | ||
Comma separated list of brokers. (default "localhost:9092") | ||
-offset string | ||
Colon separated offsets where to start and end reading messages. | ||
-topic string | ||
Topic to consume. | ||
$ kt -topic kt-test | ||
Partition=0 Offset=0 Key= Value=Hello, World 0 | ||
Partition=0 Offset=1 Key= Value=Hallo, Welt | ||
Partition=0 Offset=2 Key= Value=Bonjour, monde | ||
^C2016/01/26 06:29:19 Received interrupt - shutting down... | ||
$ kt -topic kt-test -offset 1: | ||
Partition=0 Offset=1 Key= Value=Hallo, Welt | ||
Partition=0 Offset=2 Key= Value=Bonjour, monde | ||
^C2016/01/26 06:29:29 Received interrupt - shutting down... | ||
$ kt -topic kt-test -offset 1:1 | ||
Partition=0 Offset=1 Key= Value=Hallo, Welt | ||
$ | ||
|
||
## Installation | ||
|
||
You can download kt via the [Releases](https://github.com/fgeller/kt/releases) section. | ||
|
||
Alternatively, the usual way via the go tool, for example: | ||
|
||
$ GO15VENDOREXPERIMENT=1 go install github.com/fgeller/kt |