I'm setting up a RabbitMQ cluster reading from its docs.
While setting it up, it joins Machine2 with Machine1 via command rabbitmqctl join_cluster rabbit@rabbit1
. Now what is rabbit@rabbit1
?
I know its user@hostname
, but when I fire this command, it says Error: {cannot_discover_cluster,"Cannot cluster node with itself"}
.
When I type-in the IP instead of hostname, it says Error: {cannot_discover_cluster,"The nodes provided are either offline or not running"}
.
I've also added IP rabbit1
in the /etc/hosts file as well.
What exactly am I missing here?