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
DIAGNOSTICS
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)