Followed this article https://medium.com/@vipin.pratap18/rabbitmq-cluster-on-aws-ec2-with-high-availability-1bcd3f8a6404
But while doing sudo rabbitmqctl join_cluster rabbit@
facing issue
attempted to contact: [rabbit@rabbitmqnode1]
rabbit@rabbitmqnode1:
connected to epmd (port 4369) on rabbitmqnode1
epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
TCP connection succeeded but Erlang distribution failed
Node name (or hostname) mismatch: node "rabbit@ip-xxxxx" believes its node name is not "rabbit@ip-xxxxx" but something else. All nodes and CLI tools must refer to node "rabbit@ip-10-0-1-122" using the same name the node itself uses (see its logs to find out what it is)
I solved it by following the logs itself
it clearly says "CLI tools must refer to node "rabbit@ip-10-0-x-xxx" using the same name the node itself uses"
while passing the cluster node name i was doing it wrong NOTE: added hostname from cat /etc/hosts
did like below sudo rabbitmqctl join_cluster rabbit@ip-10-0-x-yyy
and it worked suucessfull message "Clustering node rabbit@ip-10-0-x-xxx with rabbit@ip-10-0-x-yyy"
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.