RocketMQ踩坑1

执行bin/tools.sh org.apache.rocketmq.example.quickstart.Producer出现如下异常:

[xxxx-R4A-srv rocketmq-all-4.7.1-bin-release]$ bin/tools.sh org.apache.rocketmq.example.quickstart.Producer
23:16:59.490 [main] DEBUG i.n.u.i.l.InternalLoggerFactory - Using SLF4J as the default logging framework
RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.PlatformDependent0).
RocketMQLog:WARN Please initialize the logger system properly.
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:685)
	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1343)
	at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1289)
	at org.apache.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:325)
	at org.apache.rocketmq.example.quickstart.Producer.main(Producer.java:67)
org.apache.rocketmq.client.exception.MQClientException: No route info of this topic: TopicTest
===========================

No route info of this topic: TopicTest
需要在/conf/broker.conf中增加autoCreateTopicEnable=true,然后重启rocketMQ即可

你可能感兴趣的:(RocketMQ踩坑1)