sh bin/kafka-topics.sh --bootstrap-server xxxxxx:9092 --list --exclude-internal --topic "test_create_.*" 相关可选参数 参数 描述 例子 --exclude-internal 排除kafka内部topic,比如__consumer_offsets-* --exclude-internal --topic 可以正则表达式进行匹配,展示topic名称 --topic 2.ConfigCommand Confi...
sh bin/kafka-topics.sh --bootstrap-server xxxxxx:9092 --list --exclude-internal 2.查询匹配Topic列表(正则表达式) 查询test_create_开头的所有Topic列表sh bin/kafka-topics.sh --bootstrap-server xxxxxx:9092 --list --exclude-internal --topic "test_create_.*" 相关可选参数 2.ConfigCommand Config...
sh bin/kafka-topics.sh --bootstrap-server xxxxxx:9092 --list --exclude-internal --topic "test_create_.*" 相关可选参数 参数 描述 例子 --exclude-internal 排除kafka内部topic,比如__consumer_offsets-* --exclude-internal --topic 可以正则表达式进行匹配,展示topic名称 --topic 2.ConfigCommand Confi...
sh bin/kafka-topics.sh --bootstrap-server xxxxxx:9092 --list --exclude-internal 2.查询匹配Topic列表(正则表达式) 查询test_create_开头的所有Topic列表sh bin/kafka-topics.sh --bootstrap-server xxxxxx:9092 --list --exclude-internal --topic "test_create_.*" 相关可选参数 回到顶部 2.ConfigCom...
使用ConsumerGroupCommand 工具,我们可以列出、描述或删除消费者组。 消费者组可以手动删除,也可以在该组的最后提交的偏移量到期时自动删除。 手动删除仅在组没有任何活动成员时才有效。 例如,要列出所有主题的所有消费者组: > bin/kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list ...
topics, onlyshow partitions whose isr count isequal to the configured minimum.--bootstrap-server <String: server to REQUIRED: The Kafka server to connectconnect to> to.--command-config <String: command Property file containing configs to beconfig property file> passed to Admin Client. This is...
--image registry.cn-hangzhou.aliyuncs.com/bigdata_cloudnative/kafka:3.2.1-debian-11-r16 --namespace kafka --command -- sleep infinity kubectl exec --tty -i kafka-client --namespace kafka -- bash PRODUCER: kafka-console-producer.sh \ --broker-list kafka-0.kafka-headless.kaf...
kafka-topics --zookeeper localhost:2181/kafka --list 1. C.删除创建的topic: kafka-topics --zookeeper localhost:2181/kafka --delete --topic test2 1. 拓展: 这里如果直接删除,则会输出 Topic *** is marked for deletion 方法一:修改kafaka配置文件server.properties, 添加 delete.topic.enable=true,重启...
bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 3 --partitions 1 --topic second Error while executing topic command : replication factor: 3 larger than available brokers: 1 副本数多于brokers数,创建topic失败 取消后台启动,查看启动时的报错日志 bin/ config/server1.proper...
kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list --command-config config/sasl.properties 生成repliac 的分配计划 预生成一个分配计划,不会执行,只是帮助生成一个计划 # topic-to-move.json { "topics": [{"topic": "topic_name"}, {"topic": "bss.auditlog.all"}], ...