一、问题重现
rocketmq按照官方Quick Start https://rocketmq.incubator.apache.org/docs/quick-start/:
- Start Name Server
- Start Broker
- Send & Receive Message
执行到第三步事,异常:1
2com.alibaba.rocketmq.client.exception.MQClientException: No route info of this topic, TopicTestA
at
二、问题查找
经过查找资料,大部分是在启动broker的时候添加autoCreateTopicEnable=true 参数,经过实际测试,该参数并不能解决问题
三、问题解决
https://github.com/alibaba/RocketMQ/issues/44 ISSUES中已经有很多人遇到过此问题。实际的问题原因是系统防火墙。关闭防火墙或者添加9876、10911端口开放规则即可。