-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rename to just kafka-console-consumer
- Loading branch information
Showing
5 changed files
with
13 additions
and
13 deletions.
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
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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
kafka-console-consumer | ||
kafka-console-consumer.test |
20 changes: 10 additions & 10 deletions
20
tools/kafka-console-topicconsumer/README.md → tools/kafka-console-consumer/README.md
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,29 +1,29 @@ | ||
# kafka-console-topicconsumer | ||
# kafka-console-consumer | ||
|
||
A simple command line tool to consume partitions of a topic and print the messages | ||
on the standard output. | ||
A simple command line tool to consume partitions of a topic and print the | ||
messages on the standard output. | ||
|
||
### Installation | ||
|
||
go get github.com/Shopify/sarama/tools/kafka-console-topicconsumer | ||
go get github.com/Shopify/sarama/tools/kafka-console-consumer | ||
|
||
### Usage | ||
|
||
# Minimum invocation | ||
kafka-console-topicconsumer -topic=test -brokers=kafka1:9092 | ||
kafka-console-consumer -topic=test -brokers=kafka1:9092 | ||
|
||
# It will pick up a KAFKA_PEERS environment variable | ||
export KAFKA_PEERS=kafka1:9092,kafka2:9092,kafka3:9092 | ||
kafka-console-topicconsumer -topic=test | ||
kafka-console-consumer -topic=test | ||
|
||
# You can specify the offset you want to start at. It can be either | ||
# `oldest`, `newest`. The default is `newest`. | ||
kafka-console-topicconsumer -topic=test -offset=oldest | ||
kafka-console-topicconsumer -topic=test -offset=newest | ||
kafka-console-consumer -topic=test -offset=oldest | ||
kafka-console-consumer -topic=test -offset=newest | ||
|
||
# You can specify the partition(s) you want to consume as a comma-separated | ||
# list. The default is `all`. | ||
kafka-console-topicconsumer -topic=test -partitions=1,2,3 | ||
kafka-console-consumer -topic=test -partitions=1,2,3 | ||
|
||
# Display all command line options | ||
kafka-console-topicconsumer -help | ||
kafka-console-consumer -help |
File renamed without changes.
This file was deleted.
Oops, something went wrong.