page contents

rocketMq 启动后 无法创建主题

Pack 发布于 2020-01-09 17:05
阅读 1871
收藏 0
分类:中间件

rocketMQ producer 执行超时

demo运行producer时报错sendDefaultImpl call timeout

RocketMQLog:WARN No appenders could be found for logger (io.netty.util.internal.InternalThreadLocalMap).

RocketMQLog:WARN Please initialize the logger system properly.

Exception in thread “main” org.apache.rocketmq.remoting.exception.RemotingTooMuchRequestException: sendDefaultImpl call timeout

at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.sendDefaultImpl(DefaultMQProducerImpl.java:640)

at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1310)

at org.apache.rocketmq.client.impl.producer.DefaultMQProducerImpl.send(DefaultMQProducerImpl.java:1256)

at org.apache.rocketmq.client.producer.DefaultMQProducer.send(DefaultMQProducer.java:339)

at com.study.demo.rocketmq.RocketProducer.main(RocketProducer.java:18)


服务器是虚拟机,防火墙关闭。


142
Pack
Pack

看下启动日志The broker[broker-a, ip:10911] boot success. serializeType=JSON and name server is ip:9876,应该是broker的ip是内网ip,我也遇到过这种情况,在broker的配置文件broker.conf中指定brokerIP1=xxx(外网ip)即可。

请先 登录 后评论