码迷,mamicode.com
首页 > 其他好文 > 详细

rocketmq 命令示例

时间:2017-07-15 23:56:34      阅读:295      评论:0      收藏:0      [点我收藏+]

标签:说明   min   .sh   dash   query   tab   查询   常用命令   table   

 

http://www.360doc.com/content/16/0111/17/1073512_527143896.shtml

http://www.cnblogs.com/marcotan/p/4256857.html

 

RocketMQ常用命令

 

二、根据msgId查询消息

1、文档:

 

指令

queryMsgById

类路径

com.alibaba.rocketmq.tools.command.message.QueryMsgByIdSubCommand

参数

是否必填

说明

-i

msgId

-h

打印帮助

-n

nameserve服务地址列表,格式ip:port;ip:port;...

举例

查询msgId= 0A2D2FA800002A9F0000000000000000的消息,nameserve地址为10.45.47.168:9876

sh mqadmin queryMsgById –n 10.45.47.168:9876 –i 0A2D2FA800002A9F0000000000000000

打印内容:

Topic:               ZTEExample

Tags:                [SimpleTest]

Keys:                [SimpleTest-1]

Queue ID:            0

Queue Offset:        0

CommitLog Offset:    0

Born Timestamp:      2014-02-26 14:49:10,875

Store Timestamp:     2014-02-26 14:48:44,840

Born Host:           10.45.46.229:4231

Store Host:          10.45.47.168:10911

System Flag:         0

Properties:          {TAGS=SimpleTest, KEYS=SimpleTest-1, WAIT=true}

Message Body Path:   /tmp/rocketmq/msgbodys/0A2D2FA800002A9F0000000000000000

 

rocketmq 命令示例

标签:说明   min   .sh   dash   query   tab   查询   常用命令   table   

原文地址:http://www.cnblogs.com/fei33423/p/7188371.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!