rocketmq 命令示例
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
|