RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.PlatformDependent0).
RocketMQLog:WARN Please initialize the logger system properly.
Exception in thread "main" org.apache.rocketmq.client.exception.MQClientException: No route info of this topic: TopicTest
See http://rocketmq.apache.org/docs/faq/ for further details.
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendDefaultImpl(DefaultMQProducerImpl.java:696)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1361)
at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1307)
at org.apache.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:328)
at org.apache.rocketmq.example.quickstart.SyncProducer.main(SyncProducer.java:29)
参考博客:
https://www.cnblogs.com/moonsoft/p/14820495.html
一、报错之前:
1.直接点击bin目录下的cmd文件启动。
2.控制台没有broker和cluster信息:
二、改变broker启动方式:用命令行启动并指定端口和自动创建Topic。
start mqbroker.cmd -n 127.0.0.1:9876 autoCreateTopicEnable=true
1.再次启动之后控制台会显示集群及broker信息,因为自动创建了。