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

java 5.0.7sdk客户端访问docker中部署的rocketmq5.3.0报错,帮我分析下?

java 5.0.7sdk客户端访问docker中部署的rocketmq5.3.0报错,请帮我分析问题,
topic创建结果如下:
rocketmq@c0e79cf7ce67:~/rocketmq-5.3.0/bin$ ./mqadmin updateTopic -n rmqnamesrv:9876 -c DefaultCluster -t phone-cabinet-dev -a +message.type=NORMAL
create topic to 192.168.31.234:10911 success.
TopicConfig [topicName=phone-cabinet-dev, readQueueNums=8, writeQueueNums=8, perm=RW-, topicFilterType=SINGLE_TAG, topicSysFlag=0, order=false, attributes={+message.type=NORMAL}]

broker.conf 如下:
brokerClusterName = DefaultCluster
brokerName = broker-a
brokerId = 0
deleteWhen = 04
fileReservedTime = 48
brokerRole = ASYNC_MASTER
flushDiskType = ASYNC_FLUSH
brokerIP1 = 192.168.31.234
autoCreateTopicEnable = true
autoCreateSubscriptionGroup = true
enableACL = false

rmq-proxy.json 如下:
{
"rocketMQClusterName": "DefaultCluster",
"brokerIP1": "192.168.31.234",
"autoCreateTopicEnable": true,
"autoCreateSubscriptionGroup": true,
"enableACL": false
}

报错如下:
2024-08-20 15:28:22.783 INFO [34336] [RocketmqClientScheduler-0-2] [o.a.r.c.j.i.ClientManagerImpl#?:?] - Start to log statistics, clientVersion=5.0.7, clientWrapperVersion=null, clientEndpoints=ipv4:192.168.31.234:8081, os description=[Windows 10 10.0], java description=[Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 11.0.9+7-LTS], clientId=DESKTOP-3QARCJC@34336@0@16p6ukuzl2o
2024-08-20 15:28:30.973 INFO [34336] [PushConsumerImpl-1 STARTING] [o.a.r.c.j.i.c.PushConsumerImpl#?:?] - Begin to start the rocketmq push consumer, clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo
2024-08-20 15:28:30.975 INFO [34336] [PushConsumerImpl-1 STARTING] [o.a.r.c.j.i.ClientImpl#?:?] - Begin to start the rocketmq client, clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo
2024-08-20 15:28:30.975 INFO [34336] [ClientManagerImpl-1 STARTING] [o.a.r.c.j.i.ClientManagerImpl#?:?] - Begin to start the client manager, clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo
2024-08-20 15:28:30.976 INFO [34336] [ClientManagerImpl-1 STARTING] [o.a.r.c.j.i.ClientManagerImpl#?:?] - The client manager starts successfully, clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo
2024-08-20 15:28:30.976 INFO [34336] [PushConsumerImpl-1 STARTING] [o.a.r.c.j.i.ClientImpl#?:?] - Begin to fetch topic(s) route data from remote during client startup, clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo, topics=[phone-cabinet-dev]
2024-08-20 15:28:31.793 INFO [34336] [RocketmqClientScheduler-0-5] [o.a.r.c.j.i.ClientImpl#?:?] - Start to update route cache for a new round, clientId=DESKTOP-3QARCJC@34336@0@16p6ukuzl2o
2024-08-20 15:28:31.981 INFO [34336] [RocketmqClientScheduler-1-10] [o.a.r.c.j.i.ClientManagerImpl#?:?] - Start to log statistics, clientVersion=5.0.7, clientWrapperVersion=null, clientEndpoints=ipv4:192.168.31.234:8081, os description=[Windows 10 10.0], java description=[Oracle Corporation Java HotSpot(TM) 64-Bit Server VM 11.0.9+7-LTS], clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo
2024-08-20 15:28:31.981 INFO [34336] [RocketmqClientScheduler-1-10] [o.a.r.c.j.i.c.PushConsumerImpl#?:?] - clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo, consumerGroup=GID-CCD-PUSH-ATTENDANCE-PERCEIVE-IN-OUT-NOTICE, receptionTimes=0, receivedMessagesQuantity=0, consumptionOkQuantity=0, consumptionErrorQuantity=0
2024-08-20 15:28:32.897 ERROR [34336] [RocketmqClientAsyncWorker-1-17] [o.a.r.c.j.i.ClientImpl#?:?] - Failed to fetch topic route, clientId=DESKTOP-3QARCJC@34336@1@16p6ytbp7wo, topic=phone-cabinet-dev
org.apache.rocketmq.shaded.io.grpc.StatusRuntimeException: UNIMPLEMENTED: HTTP status code 404
invalid content-type: null
trailers: Metadata(:status=404,date=Tue, 20 Aug 2024 07:28:32 GMT,server=Cowboy,content-length=0)
at org.apache.rocketmq.shaded.io.grpc.Status.asRuntimeException(Status.java:539)

展开
收起
嘟嘟嘟嘟嘟嘟 2024-08-28 08:12:43 59 0
2 条回答
写回答
取消 提交回答

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

相关产品

  • 云消息队列 MQ
  • 热门讨论

    热门文章

    相关电子书

    更多
    从 SDK 到编解码:视频直播架构解析 立即下载
    跨平台的云服务SDK需要什么 立即下载
    一个跨平台的云服务SDK需要什么 立即下载