title: How to setup RabbitMQ cluster with AWS EC2
body: <p>Followed this article
  <a href="https://medium.com/@vipin.pratap18/rabbitmq-cluster-on-aws-ec2-with-high-availability-1bcd3f8a6404" rel="nofollow noreferrer">https://medium.com/@vipin.pratap18/rabbitmq-cluster-on-aws-ec2-with-high-availability-1bcd3f8a6404</a></p>
  <p>But while doing sudo rabbitmqctl join_cluster rabbit@</p>
  <p>facing issue</p>
  <h1>DIAGNOSTICS</h1>
  <p>attempted to contact: [rabbit@rabbitmqnode1]</p>
  <p>rabbit@rabbitmqnode1:</p>
  <ul>
  <li><p>connected to epmd (port 4369) on rabbitmqnode1</p>
  </li>
  <li><p>epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic</p>
  </li>
  <li><p>TCP connection succeeded but Erlang distribution failed</p>
  </li>
  <li><p>Node name (or hostname) mismatch: node &quot;rabbit@ip-xxxxx&quot; believes its node name is not &quot;rabbit@ip-xxxxx&quot; but something else.
  All nodes and CLI tools must refer to node &quot;rabbit@ip-10-0-1-122&quot; using the same name the node itself uses (see its logs to find out what it is)</p>
  </li>
  </ul>