【发布时间】:2019-01-11 05:56:24
【问题描述】:
我正在尝试启动 Kafka 消费者,但它显示以下错误:
$ bin/kafka-console-consumer.sh --zookeeper localhost:2181 —topic Hello-Kafka
Exactly one of whitelist/blacklist/topic is required.
Option Description
------ -----------
--blacklist <blacklist> Blacklist of topics to exclude from
consumption.
--bootstrap-server <server to connect
to>
--consumer.config <config file> Consumer config properties file.
--csv-reporter-enabled If set, the CSV metrics reporter will
be enabled
--delete-consumer-offsets If specified, the consumer path in
zookeeper is deleted when starting up
............
............
【问题讨论】:
-
我猜是
--topic Hello-Kafka(有两个虚线,而不仅仅是一个)? -
感谢您的回复。
标签: apache-kafka