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