温馨提示×

温馨提示×

您好,登录后才能下订单哦!

密码登录×
登录注册×
其他方式登录
点击 登录注册 即表示同意《亿速云用户服务条款》

如何理解RocketMQ Consumer命令

发布时间:2021-11-17 17:12:52 来源:亿速云 阅读:223 作者:柒染 栏目:大数据

本篇文章给大家分享的是有关如何理解RocketMQ Consumer命令,小编觉得挺实用的,因此分享给大家学习,希望大家阅读完这篇文章后可以有所收获,话不多说,跟着小编一起来看看吧。

1.创建订阅组

bin/mqadmin updateSubGroup -n localhost:9876 -c DefaultCluster -g zto-tst-consumer

2.删除订阅组

bin/mqadmin deleteSubGroup -n 192.168.1.x:9876 -c AdpMqCluster -g CODCANCELSIGN
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
delete subscription group [CODCANCELSIGN] from broker [192.168.1.x:10911] in cluster [AdpMqCluster] success.
delete subscription group [CODCANCELSIGN] from broker [192.168.1.x:10911] in cluster [AdpMqCluster] success.
delete subscription group [CODCANCELSIGN] from broker [192.168.1.x:10919] in cluster [AdpMqCluster] success.
delete subscription group [CODCANCELSIGN] from broker [192.168.1.x:10915] in cluster [AdpMqCluster] success.
delete subscription group [CODCANCELSIGN] from broker [192.168.1.x:10915] in cluster [AdpMqCluster] success.
delete subscription group [CODCANCELSIGN] from broker [192.168.1.x:10919] in cluster [AdpMqCluster] success.
delete topic [%RETRY%CODCANCELSIGN] from cluster [xMqCluster] success.
delete topic [%RETRY%CODCANCELSIGN] from NameServer success.
delete topic [%DLQ%CODCANCELSIGN] from cluster [xMqCluster] success.
delete topic [%DLQ%CODCANCELSIGN] from NameServer success.

3.查看消费组情况及IP地址

bin/mqadmin consumerStatus -g TraceToCaiNiao -n 192.168.1.x:9876
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
001 192.168.12.122@25063 V3_5_8 1539756615406/192.168.x.x@25063
002 192.168.13.96@3351 V3_5_8 1539756615406/192.168.x.x@3351
003 192.168.x.x@13385 V3_5_8 1539756615406/192.168.x.x@13385
004 192.168.x.x@6691 V3_5_8 1539756615406/192.168.x.x@6691

4.查看消费组情况

bin/mqadmin consumerProgress -n 192.168.1.x:9876 -g SortComplementConsumer
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option PermSize=128m; support was removed in 8.0
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=128m; support was removed in 8.0
Topic Broker Name QID Broker Offset Consumer Offset Diff LastTime
%RETRY%SortComplementConsumer broker-a 0 1 1 0 2018-10-22 12:43:13
%RETRY%SortComplementConsumer broker-b 0 2 2 0 2018-10-22 12:43:13
%RETRY%SortComplementConsumer broker-c 0 2 2 0 2018-10-22 12:43:28
%RETRY%SortComplementConsumer broker-d 0 2 2 0 2018-10-22 12:44:33
SCANRECORD broker-a 0 39717505 39717502 3 2018-10-22 13:53:21
SCANRECORD broker-a 1 39721504 39721502 2 2018-10-22 13:53:21
SCANRECORD broker-a 2 39733704 39733703 1 2018-10-22 13:53:21

以上就是如何理解RocketMQ Consumer命令,小编相信有部分知识点可能是我们日常工作会见到或用到的。希望你能通过这篇文章学到更多知识。更多详情敬请关注亿速云行业资讯频道。

向AI问一下细节
推荐阅读:
  1. RocketMQ
  2. Rocketmq整体分析

免责声明:本站发布的内容(图片、视频和文字)以原创、转载和分享为主,文章观点不代表本网站立场,如果涉及侵权请联系站长邮箱:is@yisu.com进行举报,并提供相关证据,一经查实,将立刻删除涉嫌侵权内容。

AI