开发者社区 > 云原生 > 云消息队列 > 正文

用example里的simple producer连不上RocketMQ,什么原因?

用example里的simple producer连不上RocketMQ,什么原因?但是用rocketmq-clients/golang/v5是可以正常收发消息的,我的RocketMQ 是5.2.0版本的,是版本问题吗?
time="2024-07-04T18:53:28+08:00" level=info msg="change the route for clients"
time="2024-07-04T18:53:28+08:00" level=info msg="the topic route info changed" changeTo="{\"OrderTopicConf\":\"\",\"queueDatas\":[{\"brokerName\":\"broker-a\",\"readQueueNums\":16,\"writeQueueNums\":16,\"perm\":6,\"topicSynFlag\":0}],\"brokerDatas\":[{\"cluster\":\"DefaultCluster\",\"brokerName\":\"broker-a\",\"brokerAddrs\":{\"0\":\"192.168.80.4:10911\"}}]}" changedFrom="" topic=TestTopic
time="2024-07-04T18:53:32+08:00" level=warning msg="send heart beat to broker error" underlayError="request timeout"
time="2024-07-04T18:53:33+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62266->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
send message error: request timeout
time="2024-07-04T18:53:39+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62268->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
time="2024-07-04T18:53:45+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62274->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
send message error: request timeout
time="2024-07-04T18:53:51+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62285->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
send message error: request timeout
time="2024-07-04T18:53:57+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62287->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
time="2024-07-04T18:54:03+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62293->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
send message error: request timeout
time="2024-07-04T18:54:05+08:00" level=warning msg="send heart beat to broker error" underlayError="request timeout"
time="2024-07-04T18:54:09+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62297->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
send message error: request timeout
time="2024-07-04T18:54:15+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62305->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
time="2024-07-04T18:54:21+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62308->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
send message error: request timeout
time="2024-07-04T18:54:27+08:00" level=error msg="conn error, close connection" underlayError="read tcp 198.18.0.1:62314->192.168.80.4:10911: wsarecv: An existing connection was forcibly closed by the remote host."
send message error: request timeout

展开
收起
嘟嘟嘟嘟嘟嘟 2024-07-10 12:30:06 31 0
1 条回答
写回答
取消 提交回答
  • 这个看应该是网络不通哦。此回答整理自钉群“群2-Apache RocketMQ 中国开发者钉钉群”

    2024-07-10 13:03:54
    赞同 9 展开评论 打赏

涵盖 RocketMQ、Kafka、RabbitMQ、MQTT、轻量消息队列(原MNS) 的消息队列产品体系,全系产品 Serverless 化。RocketMQ 一站式学习:https://rocketmq.io/

热门讨论

热门文章

相关电子书

更多
低代码开发师(初级)实战教程 立即下载
冬季实战营第三期:MySQL数据库进阶实战 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载