-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
update tutorial #573
base: gh-pages
Are you sure you want to change the base?
update tutorial #573
Conversation
update tutorial for latest consumer api change of kafka.
- With later version of kafka (0.10.x ~ latest) | ||
|
||
``` | ||
$ $KAFKA_HOME/bin/kafka-console-consumer.sh --topic=topic --bootstrap-server=`broker-list.sh` |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be 0.9 to latest with --new-consumer
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these two links for your ref:
kafka 0.10.0 tag quickstart_consume
kafka 0.10.1 tag quickstart_consume
i think new consumer api had been used as default api in 0.10.1 without --new-consumer
. As the links wroten, --zookeeper
option is default for versions <= 0.10.0, and --bootstrap-server
option is default for versions >= 0.10.1.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would consult the source code for ConsoleConsumer rather than the html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i find the latest tag of version 0.10.0 (0.10.0.1-rc2) and ealiest tag of version 0.10.1 (0.10.1.0) ,
ver 0.10.0.1-rc2
ver 0.10.1.0
i think new consumer is the default option for the versions equal to and after 0.10.1.
- With earlier version of kafka (0.8.x ~ 2.0.x) | ||
|
||
``` | ||
$ $KAFKA_HOME/bin/kafka-console-consumer.sh --topic=topic --zookeeper=$ZK |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say this is for < 0.9
index.md
Outdated
``` | ||
$ $KAFKA_HOME/bin/kafka-console-consumer.sh --topic=topic --zookeeper=$ZK | ||
``` | ||
- With kafka version between 0.10.x to 2.0.x, both scripts above are available. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Between 0.9 and latest 2.x
correct the mistake
update tutorial for latest consumer api change of kafka.
ref: #564