[rabbitmq-discuss] RabbitMQ cluster on a single machine, OSX Lion, Homebrew

Gavin M. Roy gmr at meetme.com
Wed Aug 15 15:05:21 BST 2012


On Wed, Aug 15, 2012 at 3:41 AM, Matthias Radestock
<matthias at rabbitmq.com>wrote:

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


That is exactly why. This can be controlled in the rabbitmq-env.conf file
in /usr/local/etc/rabbitmq/:

gmr-mbp:rabbitmq gmr$ cat rabbitmq-env.conf
CONFIG_FILE=/usr/local/etc/rabbitmq/rabbitmq
NODE_IP_ADDRESS=127.0.0.1
NODENAME=rabbit at localhost


> you may want to file an issue / contact the authors.


I ended up with this solution after having people install and not being
able to start it up.

Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20120815/6423cea0/attachment.htm>


More information about the rabbitmq-discuss mailing list