ming444 commented on issue #504: No route info of this topic problem
URL: https://github.com/apache/rocketmq/issues/504#issuecomment-569665622
 
 
   > 用阿里云服务器的同学,如果rocketmq和你的微服务不在一台阿里云服务器上,那很有可能是阿里云使用内网IP的缘故导致`No route info 
of this topic, TopicTest`不能自动创建topic,把rocketmq和微服务放一台服务器就好了,这问题真·排到怀疑人生= =
   
   如果rocketmq必须和微服务在不同的服务器,检查以下设置:
   1. 在`broker.conf`设置:
   ```sh
   brokerIP1=rocketmq服务器外部IP
   autoCreateTopicEnable=true
   ```
   比如阿里云服务器就注意不要用阿里云内部IP;
   2. 客户端rocketmq-client是否与服务器端rocketmq是相同版本,**版本一定要匹配**;
   3. 
在版本匹配的基础上,须写入正确的dependency,我就是其他都对,结果多了一个依赖就死活不行,如下图,第一个红框的依赖是不需要,反正我有这个依赖就报`No 
route info of this topic`,第二个红框是保证和客户端和服务器端版本一致。
   
![image](https://user-images.githubusercontent.com/52517210/71581911-a0924d80-2b42-11ea-918a-92c1e727f13d.png)
   

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to