rocketmq指定autocreatetopicenabletrue不生效

  • A+
所属分类:Elasticsearch

---
title: RocketMQ指定autoCreateTopicEnable=true不生效
date: 2021-05-06 22:47:22
categories: 消息中间件
tags:
- 版本
- rocketmq
- autoCreateTopicEnable
- route
---

今天自己玩RocketMQ的demo死活报错No route info of this topic

百度了下,说是启动broker时要指定autoCreateTopicEnable=true,但是指定这个参数启动broker后依旧报错No route info of this topic

最后发现是RocketMQ客户端和服务端版本不一致导致的。服务端用的是最新的4.8.0,而客户端使用的是4.6.0,客户端和服务端的版本必须一致!这个完全是RocketMQ官方网站的坑,因为官方网站的quick start中的maven就是4.6.0的

ZPY

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: