名称 | 选项 | 必填 | 参数 | 含义 | |
UpdateTopicSubCommand updateTopic:Update or create topic
| p | FALSE | perm | set topic's permission(2|4|6), intro[2:W 4:R; 6:RW] | |
b | FALSE | brokerAddr | create topic to which broker | ||
r | FALSE | readQueueNums | set read queue nums | ||
c | FALSE | clusterName | create topic to which cluster | ||
s | FALSE | hasUnitSub | has unit sub (true|false) | ||
t | TRUE | topic | topic name | ||
u | FALSE | unit | is unit topic (true|false) | ||
w | FALSE | writeQueueNums | set write queue nums | ||
o | FALSE | order | set topic's order(true|false) | ||
DeleteTopicSubCommand deleteTopic:Delete topic from broker and NameServer. | c | TRUE | clusterName | delete topic from which cluster | |
t | TRUE | topic | topic name | ||
UpdateSubGroupSubCommand updateSubGroup:Update or create subscription group | q | FALSE | retryQueueNums | retry queue nums | |
a | FALSE | notifyConsumerIdsChanged | notify consumerId changed | ||
b | FALSE | brokerAddr | create subscription group to which broker | ||
r | FALSE | retryMaxTimes | retry max times | ||
c | FALSE | clusterName | create subscription group to which cluster | ||
s | FALSE | consumeEnable | consume enable | ||
d | FALSE | consumeBroadcastEnable | broadcast | ||
g | TRUE | groupName | consumer group name | ||
w | FALSE | whichBrokerWhenConsumeSlowly | which broker id when consume slowly | ||
i | FALSE | brokerId | consumer from which broker id | ||
m | FALSE | consumeFromMinEnable | from min offset | ||
DeleteSubscriptionGroupCommand deleteSubGroup:Delete subscription group from broker. | b | FALSE | brokerAddr | delete subscription group from which broker | |
c | FALSE | clusterName | delete subscription group from which cluster | ||
g | TRUE | groupName | subscription group name | ||
UpdateBrokerConfigSubCommand updateBrokerConfig:Update broker's config | b | FALSE | brokerAddr | update which broker | |
c | FALSE | clusterName | update which cluster | ||
v | TRUE | value | config value | ||
k | TRUE | key | config key | ||
UpdateTopicPermSubCommand updateTopicPerm:Update topic perm | p | TRUE | perm | set topic's permission(2|4|6), intro[2:W; 4:R; 6:RW] | |
b | FALSE | brokerAddr | create topic to which broker | ||
c | FALSE | clusterName | create topic to which cluster | ||
t | TRUE | topic | topic name | ||
TopicRouteSubCommand topicRoute:Examine topic route info | t | TRUE | topic | topic name | |
TopicStatusSubCommand topicStatus:Examine topic Status info | t | TRUE | topic | topic name | |
TopicClusterSubCommand topicClusterList:get cluster info for topic | t | TRUE | topic | topic name | |
BrokerStatusSubCommand brokerStatus:Fetch broker runtime status data | b | FALSE | brokerAddr | Broker address | |
c | FALSE | clusterName | which cluster | ||
QueryMsgByIdSubCommand queryMsgById:Query Message by Id | s | FALSE | sendMessage | resend message | |
d | FALSE | clientId | The consumer's client id | ||
u | FALSE | unitName | unit name | ||
g | FALSE | consumerGroup | consumer group name | ||
i | TRUE | msgId | Message Id | ||
QueryMsgByKeySubCommand queryMsgByKey:Query Message by Key | t | TRUE | topic | topic name | |
k | TRUE | msgKey | Message Key | ||
QueryMsgByUniqueKeySubCommand queryMsgByUniqueKey:Query Message by Unique key | d | FALSE | clientId | The consumer's client id | |
t | TRUE | topic | The topic of msg | ||
g | FALSE | consumerGroup | consumer group name | ||
i | TRUE | msgId | Message Id | ||
QueryMsgByOffsetSubCommand queryMsgByOffset:Query Message by offset | b | TRUE | brokerName | Broker Name | |
t | TRUE | topic | topic name | ||
i | TRUE | queueId | Queue Id | ||
o | TRUE | offset | Queue Offset | ||
QueryMsgByUniqueKeySubCommand queryMsgByUniqueKey:Query Message by Unique key | d | FALSE | clientId | The consumer's client id | |
t | TRUE | topic | The topic of msg | ||
g | FALSE | consumerGroup | consumer group name | ||
i | TRUE | msgId | Message Id | ||
PrintMessageSubCommand printMsg:Print Message Detail | b | FALSE | beginTimestamp | Begin timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS] | |
c | FALSE | charsetName | CharsetName(eg: UTF-8,GBK) | ||
s | FALSE | subExpression | Subscribe Expression(eg: TagA || TagB) | ||
t | TRUE | topic | topic name | ||
d | FALSE | printBody | print body | ||
e | FALSE | endTimestamp | End timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS] | ||
PrintMessageByQueueCommand printMsgByQueue:Print Message Detail | p | FALSE | print msg | print msg. eg: true | false(default) | |
a | TRUE | brokerName | broker name | ||
b | FALSE | beginTimestamp | Begin timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS] | ||
c | FALSE | charsetName | CharsetName(eg: UTF-8,GBK) | ||
s | FALSE | subExpression | Subscribe Expression(eg: TagA || TagB) | ||
t | TRUE | topic | topic name | ||
d | FALSE | printBody | print body. eg: true | false(default) | ||
e | FALSE | endTimestamp | End timestamp[currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS] | ||
f | FALSE | calculate | calculate by tag. eg: true | false(default) | ||
i | TRUE | queueId | queue id | ||
SendMsgStatusCommand sendMsgStatus:send msg to broker. | b | TRUE | brokerName | Broker Name | |
s | FALSE | messageSize | Message Size, Default: 128 | ||
c | FALSE | count | send message count, Default: 50 | ||
BrokerConsumeStatsSubCommad brokerConsumeStats:Fetch broker consume stats data | b | TRUE | brokerAddr | Broker address | |
t | FALSE | timeoutMillis | request timeout Millis | ||
l | FALSE | level | threshold of print diff | ||
o | FALSE | order | order topic | ||
ProducerConnectionSubCommand producerConnection:Query producer's socket connection and client version | t | TRUE | topic | topic name | |
g | TRUE | producerGroup | producer group name | ||
ConsumerConnectionSubCommand consumerConnection:Query consumer's socket connection, client version and subscription | g | TRUE | consumerGroup | consumer group name | |
ConsumerProgressSubCommand consumerProgress:Query consumers's progress, speed | g | FALSE | groupName | consumer group name | |
ConsumerStatusSubCommand consumerStatus:Query consumer's internal data structure | s | FALSE | jstack | Run jstack command in the consumer progress | |
g | TRUE | consumerGroup | consumer group name | ||
i | FALSE | clientId | The consumer's client id | ||
CloneGroupOffsetCommand cloneGroupOffset:clone offset from other group. | s | TRUE | srcGroup | set source consumer group | |
d | TRUE | destGroup | set destination consumer group | ||
t | TRUE | topic | set the topic | ||
o | FALSE | offline | the group or the topic is offline | ||
ClusterListSubCommand clusterList:List all of clusters | i | FALSE | interval | specify intervals numbers, it is in seconds | |
m | FALSE | moreStats | Print more stats | ||
TopicListSubCommand: topicList:Fetch all topic list from name server | c | FALSE | clusterModel | clusterModel | |
UpdateKvConfigCommand updateKvConfig:Create or update KV config. | s | TRUE | namespace | set the namespace | |
v | TRUE | value | set the key value | ||
k | TRUE | key | set the key name | ||
DeleteKvConfigCommand deleteKvConfig:Delete KV config. | s | TRUE | namespace | set the namespace | |
k | TRUE | key | set the key name | ||
WipeWritePermSubCommand wipeWritePerm:Wipe write perm of broker in all name server | b | TRUE | brokerName | broker name | |
ResetOffsetByTimeCommand resetOffsetByTime:Reset consumer offset by timestamp(without client restart). | s | TRUE | timestamp | set the timestamp[now|currentTimeMillis|yyyy-MM-dd#HH:mm:ss:SSS] | |
c | FALSE | cplus | reset c++ client offset | ||
t | TRUE | topic | set the topic | ||
f | FALSE | force | set the force rollback by timestamp switch[true|false] | ||
g | TRUE | group | set the consumer group | ||
UpdateOrderConfCommand updateOrderConf:Create or update or delete order conf | t | TRUE | topic | topic name | |
v | FALSE | orderConf | set order conf [eg. brokerName1:num;brokerName2:num] | ||
m | TRUE | method | option type [eg. put|get|delete | ||
CleanExpiredCQSubCommand cleanExpiredCQ:Clean expired ConsumeQueue on broker. | b | FALSE | brokerAddr | Broker address | |
c | FALSE | cluster | clustername | ||
CleanUnusedTopicCommand cleanUnusedTopic:Clean unused topic on broker. | b | FALSE | brokerAddr | Broker address | |
c | FALSE | cluster | cluster name | ||
StatsAllSubCommand statsAll:Topic and Consumer tps stats | a | FALSE | activeTopic | print active topic only | |
t | FALSE | topic | print select topic only | ||
AllocateMQSubCommand allocateMQ:Allocate MQ | t | TRUE | topic | topic name | |
i | TRUE | ipList | ipList | ||
CheckMsgSendRTCommand checkMsgSendRT:check message send response time | a | FALSE | amout | message amout | default 100 | |
s | TRUE | size | message size | default 128 Byte | ||
t | TRUE | topic | topic name | ||
CLusterSendMsgRTCommand clusterRT:List All clusters Message Send RT | p | FALSE | print log | print as tlog | default false | |
a | FALSE | amout | message amout | default 100 | ||
s | TRUE | size | message size | default 128 Byte | ||
c | FALSE | cluster | cluster name | default display all cluster | ||
i | FALSE | interval | print interval | default 10 seconds | ||
m | FALSE | machine room | machine room name | default noname | ||
UpdateNamesrvConfigCommand updateNamesrvConfig:Update configs of name server. | v | TRUE | value | config value | |
k | TRUE | key | config key | ||
GetBrokerConfigCommand getBrokerConfig:Get broker config by cluster or special broker! | b | FALSE | brokerAddr | update which broker | |
c | FALSE | clusterName | update which cluster | ||
QueryConsumeQueueCommand queryCq:Query cq command. | q | TRUE | queue | queue num, ie. 1 | |
b | FALSE | broker | broker addr. | ||
c | FALSE | count | how many. | ||
t | TRUE | topic | topic name | ||
g | FALSE | consumer | consumer group. | ||
i | TRUE | index | start queue index. |
RocketMQ4.2.0-参数配置解析- MQAdmin命令参数大全
最新推荐文章于 2024-08-24 10:37:33 发布