做了多Master多Slave模式(同步)的集群,不过启动Master的broker的时候,没有报任何错误,但是当启动Slave的broker的时候报如下的错误:org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to rocketmq-nameserver1:9876 failed at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:392) ~[rocketmq-remoting-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.out.BrokerOuterAPI.unregisterBroker(BrokerOuterAPI.java:248) ~[rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.out.BrokerOuterAPI.unregisterBrokerAll(BrokerOuterAPI.java:225) ~[rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.BrokerController.unregisterBrokerAll(BrokerController.java:814) [rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.BrokerController.shutdown(BrokerController.java:757) [rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.BrokerStartup$1.run(BrokerStartup.java:235) [rocketmq-broker-4.4.0.jar:4.4.0] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121] 2020-03-16 17:02:54 WARN ShutdownHook - unregisterBroker Exception, rocketmq-nameserver2:9876 org.apache.rocketmq.remoting.exception.RemotingConnectException: connect to rocketmq-nameserver2:9876 failed at org.apache.rocketmq.remoting.netty.NettyRemotingClient.invokeSync(NettyRemotingClient.java:392) ~[rocketmq-remoting-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.out.BrokerOuterAPI.unregisterBroker(BrokerOuterAPI.java:248) ~[rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.out.BrokerOuterAPI.unregisterBrokerAll(BrokerOuterAPI.java:225) ~[rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.BrokerController.unregisterBrokerAll(BrokerController.java:814) [rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.BrokerController.shutdown(BrokerController.java:757) [rocketmq-broker-4.4.0.jar:4.4.0] at org.apache.rocketmq.broker.BrokerStartup$1.run(BrokerStartup.java:235) [rocketmq-broker-4.4.0.jar:4.4.0] at java.lang.Thread.run(Thread.java:745) [na:1.8.0_121]
请问大佬们知道原因吗
1,检查rocketmq.config.namesrvAddr是否已经配置 2,文件位于rocketmq-externals/rocketmq-console/src/main/resources下面 修改 application.properties rocketmq.config.namesrvAddr=127.0.0.1:9876 rocketmq.config.isVIPChannel=false
完事重新打包 mvn clean package -Dmaven.test.skip=true
运行
java -jar rocketmq-console-ng-1.0.0.jar
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。