2015-12-22 127 views
1

我是rabbitmq的新手,并尝试设置群集。但是,我收到以下错误。该cookie是在这两个机器一样在C:\Windows and C:\Users\<user in context>目录在rabbitmq中创建群集时出错

rabbitmqctl join_cluster [email protected] Clustering node [email protected] with [email protected] ... Error: unable to connect to nodes [[email protected]]: nodedown

诊断

attempted to contact: [[email protected]]

[email protected]: * connected to epmd (port 4369) on node1 * epmd reports node 'rabbit' running on port 25672 * TCP connection succeeded but Erlang distribution failed * suggestion: hostname mismatch? * suggestion: is the cookie set correctly? * suggestion: is the Erlang distribution using TLS? current node details: - node name: '[email protected]' - home dir: C:\Users\dataimports - cookie hash: AWMNITV6TcxGSxvEF6Gndw==

任何帮助深表感谢。

+0

看起来像erlang cookie在节点上是不同的。 – Shrey

+0

erlang cookie在所有节点中都是相同的 – user55474

回答

2

看起来您的rabbit @ node2节点正在寻找名为rabbit @ node1的节点,当存在的节点是rabbitmq-cli-552 @ node1时。

当rabbitmq在安装时启动时会发生这种情况。解决此问题的最佳方法是停止rabbitmq进程(sudo /etc/init.d/rabbitmq-server stop)然后启动它(sudo /etc/init.d/rabbitmq-server start)。

如果第一个命令无法停止它,您可以随时终止rabbitmq服务器进程,然后重新启动它。节点应该有正确的名称。