博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
kafka客户端自带的脚本生产-消费消息
阅读量:2391 次
发布时间:2019-05-10

本文共 413 字,大约阅读时间需要 1 分钟。

使用控制台脚本生产-消费消息

使用控制台的生产者脚本生产消息

➜  bin sh kafka-console-producer.sh --broker-list localhost:9092 --topic test>one>two>three

使用控制台的消费者脚本消费消息

➜  bin sh kafka-console-consumer.sh --zookeeper localhost:2181 --topic test --from-beginningonetwothree

管理consumer分区

列出所有的consumer

sh kafka-consumer-groups.sh --bootstrap-server localhost:9092 --list

查询所有的topic

sh kafka-topics.sh  --list --zookeeper 192.168.10.151:2181

参考文档

转载地址:http://mqqab.baihongyu.com/

你可能感兴趣的文章
OTPs: Using s/Key with SSH via OPIE
查看>>
使用arpwatch和arping来排查ARP攻击
查看>>
Linux硬件监控方法
查看>>
RSA SecurID Authentication linux sshd PAM deploy
查看>>
转: pam 禁止某些用户使用ssh 远程登录
查看>>
小包优先+web优先+游戏爆发+单IP限速+连接数限制 脚本V2.0
查看>>
Rhel5 配置NTP服务
查看>>
定制rhel的stage2.img/minstg2.img文件
查看>>
ZZ Quick-Tip: Linux NAT in Four Steps using iptables
查看>>
北京的住房公积金是否可用于还外地的房贷
查看>>
mysqlhotcopy 热备工具体验与总结
查看>>
MooseFS安装笔记
查看>>
GlusterFS分布式集群文件系统安装、配置及性能测试
查看>>
Sakai
查看>>
Adobe ColdFusion Unspecified Directory Traversal Vulnerability
查看>>
Share:A File Checksum Integrity Verifier utility
查看>>
LDAP User Authentication On CentOS 5.x
查看>>
Cpanel PHP Restriction Bypass Vulnerability 0day
查看>>
Exchange 导出用户数据
查看>>
vBulletin 论坛全版本 后台拿shell
查看>>