日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當前位置: 首頁 > 编程资源 > 编程问答 >内容正文

编程问答

kafka消费者命令行的使用方法

發(fā)布時間:2025/5/22 编程问答 29 豆豆
生活随笔 收集整理的這篇文章主要介紹了 kafka消费者命令行的使用方法 小編覺得挺不錯的,現(xiàn)在分享給大家,幫大家做個參考.

2019獨角獸企業(yè)重金招聘Python工程師標準>>>

root@ocdata07 bin]# ./kafka-console-consumer.sh
The console consumer is a tool that reads data from Kafka and outputs it to standard output.
Option????????????????????????????????? Description?????????????????????????? ?
------????????????????????????????????? -----------?????????????????????????? ?
--blacklist <blacklist>???????????????? Blacklist of topics to exclude from?? ?
????????????????????????????????????????? consumption.??????????????????????? ?
--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
--formatter <class>???????????????????? The name of a class to use for??????? ?
????????????????????????????????????????? formatting kafka messages for?????? ?
????????????????????????????????????????? display. (default: kafka.tools.???? ?
????????????????????????????????????????? DefaultMessageFormatter)??????????? ?
--from-beginning??????????????????????? If the consumer does not already have ?
????????????????????????????????????????? an established offset to consume??? ?
????????????????????????????????????????? from, start with the earliest?????? ?
????????????????????????????????????????? message present in the log rather?? ?
????????????????????????????????????????? than the latest message.??????????? ?
--max-messages <Integer: num_messages>? The maximum number of messages to???? ?
????????????????????????????????????????? consume before exiting. If not set, ?
????????????????????????????????????????? consumption is continual.?????????? ?
--metrics-dir <metrics dictory>???????? If csv-reporter-enable is set, and??? ?
????????????????????????????????????????? this parameter isset, the csv?????? ?
????????????????????????????????????????? metrics will be outputed here?????? ?
--property <prop>???????????????????????????????????????????????????????????? ?
--skip-message-on-error???????????????? If there is an error when processing a
????????????????????????????????????????? message, skip it instead of halt.?? ?
--topic <topic>???????????????????????? The topic id to consume on.?????????? ?
--whitelist <whitelist>???????????????? Whitelist of topics to include for??? ?
????????????????????????????????????????? consumption.??????????????????????? ?
--zookeeper <urls>????????????????????? REQUIRED: The connection string for?? ?
????????????????????????????????????????? the zookeeper connection in the form
????????????????????????????????????????? host:port. Multiple URLS can be???? ?
????????????????????????????????????????? given to allow fail-over.?????


因此要同時啟動 多個不同組的消費者,要么指定不同的配置文件,要么設置不同的property

不過設置consumer.config 的試過了 --可以用

但是property的只是在java api中用過 因此我感覺這里也可以用(猜想) ??

轉載于:https://my.oschina.net/u/2329222/blog/479463

總結

以上是生活随笔為你收集整理的kafka消费者命令行的使用方法的全部內容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內容還不錯,歡迎將生活随笔推薦給好友。