1. 程式人生 > >RocketMq:No route info of this topic

RocketMq:No route info of this topic

1:確保NamesrvAddr可訪問(如果不可訪問則看看是不是防火牆導致的,將防火牆關閉:systemctl stop firewalld.service)

2:Broker禁止自動建立Topic,但是使用者沒有手動建立Topic :

2.1:手動建立Topic :sh mqadmin updateTopic –n localhost:9876 –c DefaultCluster –t  topic_name

2.2: 啟動broker時增加引數:sh mqbroker -n localhost:9876 autoCreateTopicEnable=true

2:可能是broker沒啟動,在bin目錄下輸入命令:

sh mqadmin clusterList -n localhost:9876 檢視所有啟動成功的broker