美文网首页
Kafka 常用shell命令

Kafka 常用shell命令

作者: shaun_x | 来源:发表于2018-04-04 16:17 被阅读0次

查看所有Topic信息

bin/kafka-topics.sh --zookeeper localhost:2181 --list

产看单个Topic信息

bin/kafka-topics.sh --zookeeper localhost:2181 --describe --topic xxx

查看所有正在连接的Consumer信息

bin/kafka-consumer-groups.sh --zookeeper localhost:2181 --list
bin/kafka-consumer-groups.sh --new-consumer --bootstrap-server localhost:9092 --list

查看单个Consumer信息

bin/kafka-consumer-groups.sh --zookeeper localhost:2181 --describe --group BrowseConsumer
bin/kafka-consumer-groups.sh --new-consumer --bootstrap-server localhost:9092 --describe --group BrowseConsumer

重头开始消费某个Topic

bin/kafka-console-consumer.sh --zookeeper localhost:2181 --from-beginning --topic xxx
bin/kafka-console-consumer.sh --new-consumer --bootstrap-server localhost:9092 --from-beginning --topic xxx

查看某个Topic所在的节点信息

bin/kafka-console-producer.sh --broker-list localhost:9092 --topic xxx

相关文章

  • Kafka 常用shell命令

    查看所有Topic信息 产看单个Topic信息 查看所有正在连接的Consumer信息 查看单个Consumer信...

  • Kafka 常用Shell命令

    查询所有topic ./kafka-topics.sh--zookeeper zooknew0:2181 zook...

  • kafka基础

    一、常用shell命令 1. 列出所有topic 2. 查看kafka版本 3. 查看offset

  • Kafka--常用shell命令

    1.启动Kafka,其中">>/dev/null"表示将日志信息输出到"黑洞",其中"2>&1"表示将错误信息和前...

  • kafka安装

    kafka 集群安装 Kafka常用操作命令

  • Kafka常用shell命令集合

    topic相关 查看topic列表 创建topic 查看topic信息 删除topic Consumer相关 消费...

  • Kafka Shell基本命令

    Kafka Shell基本命令(包括topic的增删改查) 创建kafka topic 注: partitions...

  • Shell命令汇总

    1、一般常用命令 (1)Shell 常用命令总结 (2)Shell的18条常用命令整理 2、文件操作常用命令 (1...

  • Shell脚本

    shell脚本学习笔记 shell命令的组合运用 常用命令组合

  • adb shell uiautomator 命令

    adb shell uiautomator 命令 Tags: adb_shell 常用到的命令: uiautoma...

网友评论

      本文标题:Kafka 常用shell命令

      本文链接:https://www.haomeiwen.com/subject/yxzkhftx.html