<br><br><div class="gmail_quote">On Wed, Aug 15, 2012 at 3:41 AM, Matthias Radestock <span dir="ltr">&lt;<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Chris,<div class="im"><br>
<br>
On 15/08/12 05:46, Chris Johnson wrote:<br>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
I am attempting to set up a simple, two node cluster on my mac using the<br>
instructions within the clustering guide:<br>
<br>
<a href="http://www.rabbitmq.com/clustering.html#single-machine" target="_blank">http://www.rabbitmq.com/<u></u>clustering.html#single-machine</a><br>
<br>
See the transcript below.<br>
I&#39;ve been trying to get this working for many hours, with no luck.<br>
I&#39;d appreciate it if someone could give me some direction.<br>
<br></div>
[...]<br>
</blockquote><div class="im">
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
? �~ �rabbitmqctl -n hare start_app<br>
Starting node hare@Wilson ...<br>
...done.<br>
? �~ �rabbitmqctl cluster_status<br>
Cluster status of node rabbit@localhost ...<br>
Error: unable to connect to node rabbit@localhost: nodedown<br>
</blockquote>
<br></div>
Notice the difference in host name in the last two commands - the first has &#39;Wilson&#39;, the second &#39;localhost&#39;.<br>
<br>
That is due to the homebrew formula setting the default node name explicitly to &#39;rabbit@localhost&#39;:<br>
<a href="https://github.com/mxcl/homebrew/blob/master/Library/Formula/rabbitmq.rb#L67" target="_blank">https://github.com/mxcl/<u></u>homebrew/blob/master/Library/<u></u>Formula/rabbitmq.rb#L67</a>. I don&#39;t know why they are doing that; possibly because MacOS is notorious for altering the hostname -</blockquote>

<div><br></div><div>That is exactly why. This can be controlled in the rabbitmq-env.conf file in /usr/local/etc/rabbitmq/:</div><div><br></div><div><div>gmr-mbp:rabbitmq gmr$ cat rabbitmq-env.conf�</div><div>CONFIG_FILE=/usr/local/etc/rabbitmq/rabbitmq</div>

<div>NODE_IP_ADDRESS=127.0.0.1</div><div>NODENAME=rabbit@localhost</div></div><div>�</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> you may want to file an issue / contact the authors.</blockquote>

<div><br></div><div>I ended up with this solution after having people install and not being able to start it up.�</div><div><br></div><div>Gavin</div></div>