mirror of
https://github.com/apache/rocketmq.git
synced 2026-09-21 13:49:50 +08:00
Co-authored-by: zhangjidi2016 <zhangjidi@cmss.chinamobile.com>
This commit is contained in:
co-authored by
zhangjidi2016
parent
6f7b0d6a2d
commit
17b9efe16d
+3
-3
@@ -164,9 +164,9 @@ public class UpdateAccessConfigSubCommand implements SubCommand {
|
||||
String clusterName = commandLine.getOptionValue('c').trim();
|
||||
|
||||
defaultMQAdminExt.start();
|
||||
Set<String> masterSet =
|
||||
CommandUtil.fetchMasterAddrByClusterName(defaultMQAdminExt, clusterName);
|
||||
for (String addr : masterSet) {
|
||||
Set<String> brokerAddrSet =
|
||||
CommandUtil.fetchMasterAndSlaveAddrByClusterName(defaultMQAdminExt, clusterName);
|
||||
for (String addr : brokerAddrSet) {
|
||||
defaultMQAdminExt.createAndUpdatePlainAccessConfig(addr, accessConfig);
|
||||
System.out.printf("create or update plain access config to %s success.%n", addr);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user