Invalid RocketMQ setting brokerIP1

RocketMQ setting brokerIP1 is invalid. The address of docker will be found by default, resulting in unable to connect to broker

configuration:

2018-06-20 21\:00\:56 INFO main - namesrvAddr=127.0.0.1:9876
2018-06-20 21\:00\:56 INFO main - brokerIP1=127.0.0.1
2018-06-20 21\:00\:56 INFO main - brokerName=localhost.localdomain
2018-06-20 21\:00\:56 INFO main - brokerClusterName=DefaultCluster
2018-06-20 21\:00\:56 INFO main - brokerId=0

start:

[Unit]
Description=RocketMQ-Broker
After=namesrv.service
[Service]
ExecStart=/opt/rocketmq/bin/mqbroker  -c /opt/rocketmq/conf/broker.p
ExecStop=/opt/rocketmq/bin/mqshutdown broker
[Install]
WantedBy=multi-user.target

Log:

2018-06-20 21:31:41 INFO PullRequestHoldService - PullRequestHoldService service started
2018-06-20 21:31:41 INFO main - The broker[localhost.localdomain, 172.17.0.1:10911] boot success. serializeType=JSON
2018-06-20 21:31:51 INFO BrokerControllerScheduledThread1 - dispatch behind commit log 0 bytes
2018-06-20 21:31:51 INFO BrokerControllerScheduledThread1 - Slave fall behind master: 0 bytes
Mar.20,2021

if you are using rocketmq, in docker, it is recommended to take a look at official document , which is very detailed https://github.com/apache/roc.

.

provide an idea

-sharp Start nameserver
docker run -d -p 9876:9876 -v `pwd`/data/namesrv/logs:/home/rocketmq/logs -v `pwd`/data/namesrv/store:/home/rocketmq/store --name rmqnamesrv rocketmqinc/rocketmq:4.5.0 sh mqnamesrv

-sharp Start Broker
docker run -d -p 10911:10911 -p 10909:10909 -v `pwd`/data/broker/logs:/home/rocketmq/logs -v `pwd`/data/broker/store:/home/rocketmq/store -v `pwd`/data/broker/conf/broker.conf:/opt/rocketmq-4.5.0/conf/broker.conf --name rmqbroker --link rmqnamesrv:namesrv -e "NAMESRV_ADDR=namesrv:9876" rocketmqinc/rocketmq:4.5.0 sh mqbroker -c /opt/rocketmq-4.5.0/conf/broker.conf
  • Rocketmq4.2 version, how to install it in win7 environment

    install the rocketmq4.2 version under the win7 environment. There is no installation tutorial for windows on the official website. According to the online tutorials, all the tutorials on the Internet are the old version, that is to say, starting mqnames...

    Mar.07,2021
  • How to fill the valley with message queue

    I know that message queues can cut the front and fill the valley message queue sharpening is easy to understand. Message queuing can limit traffic when a large number of requests are sent. Protect the back end. but how to understand filling grain ...

    Mar.12,2021
  • Is rabbitmq transaction message supported?

    would you like to know if rabbitmq supports distributed transaction messages? rocketmq4.3 begins to support distributed transaction messages. what is the general mechanism if rabbitmq does not support transaction messages? ...

    Oct.15,2021
  • SendDefaultImpl call timeoutRocketmq

    when using the Rocketmq queue service, the server sees that the log has been started successfully, but the above error is thrown when the code called by the official client is executed. I use version 4.3.0 of Rocketmq. The following is the code called b...

    Jan.20,2022
  • Some questions from the official Order Message Example of rocketmq?

    problem description there is a doubt about the example code of learning rocketmq on the official website. The link: http: rocketmq.apache.org do... is the result of multiple if judgments in Subscription message sample code. What exactly does it mean...

    Apr.22,2022
  • RocketMQ broker busy problem

    the company uses rocketmq message middleware. With the growth of business, it will be reported occasionally recently: [TIMEOUT_CLEAN_QUEUE] broker busy, start flow control for a while, period in queue: 206ms, size of queue: 5 I have made a version u...

    May.02,2022
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1bf26c6-31ddd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1bf26c6-31ddd.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?