zookeeper is not a recognized option
An error is reported when creating a consumer:
.\bin\windows\kafka-console-consumer.bat --zookeeper localhost:2181 --topic ads_log zookeeper is not a recognized option
Cause of problem:
In the new version Kafka, -zookeeper has been deleted.
Solution:
The method of starting consumers after version 0.90 is as follows:
.\bin\windows\kafka-topics.bat --bootstrap-server localhost:9092 --topic ads_log --from-beginning
--bootstrap-server para
Create theme: you can
.\bin\windows\kafka-topics.bat --create --bootstrap-server localhost:9092 --replication-factor 1 --partitions 3 --topic ads .\bin\windows\kafka-topics.bat --create --zookeeper localhost:2181 --replication-factor 1 --partitions 3 --topic ads
end!
Similar Posts:
- Kafka Error: Error while executing topic command : Replication factor: 3 larger than available brokers: 0.
- Kafka creates topic error: org.apache.kafka.common.errors.InvalidReplicationFactorException: Replication factor: 1 larger than available brokers: 0.
- Kafka startup error & problem solving
- kafka java.net.ConnectException: Connection timed out: no further information
- kafka java.net.ConnectException: Connection timed out: no further information
- Zookeeper link error keepererrorcode = nodeexists for
- Solution of failed tosend message exception in Kafka
- [Solved] zookeeper deletes a directory node Error: authentication is not valid: /HBase/tokenauth
- Kafka Error: Caused by: java.lang.OutOfMemoryError: Map failed [How to Solve]
- An error is reported when zookeeper starts (the data directory permission is incorrect)