Skip to content

Commit

Permalink
MINOR: Update command options for kafka-console-consumer.sh in vagran…
Browse files Browse the repository at this point in the history
…t/README.md (apache#6689)

The following command in vagrant/README.md doesn't work,
since `--zookeeper` option has been unsuppored from v2.0.0.
This PR updates its command options to fix it.

```
bin/kafka-console-consumer.sh --zookeeper zk1:2181 --topic sandbox --from-beginning
```

Reviewers: Jason Gustafson <[email protected]>
  • Loading branch information
sekikn authored and Jason Gustafson committed May 19, 2019
1 parent c140f09 commit fc616cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vagrant/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@ You can access the brokers and zookeeper by their IP or hostname, e.g.
# Specify brokers by their hostnames: broker1, broker2, broker3
bin/kafka-console-producer.sh --broker-list broker1:9092,broker2:9092,broker3:9092 --topic sandbox

# Specify ZooKeeper node by its hostname: zk1
bin/kafka-console-consumer.sh --zookeeper zk1:2181 --topic sandbox --from-beginning
# Specify brokers by their IP: 192.168.50.51, 192.168.50.52, 192.168.50.53
bin/kafka-console-consumer.sh --bootstrap-server 192.168.50.51:9092,192.168.50.52:9092,192.168.50.53:9092 --topic sandbox --from-beginning

If you need to update the running cluster, you can re-run the provisioner (the
step that installs software and configures services):
Expand Down

0 comments on commit fc616cb

Please sign in to comment.