Я только что установил rabbitmq на 2 новые виртуальные машины и попытался создать простой кластер из двух узлов.Я скопировал файл cookie erlang с одного компьютера в оба расположения на этом компьютере (C: \ Users {имя пользователя} и C: \ Windows \ System32 \ config \ systemprofile), а также в эти расположения на другом компьютере.
Когда я пытаюсь присоединиться друг к другу для создания кластера с помощью команды rabbitmqctl join_cluster, я получаю следующий вывод:
Clustering node rabbit@{machinename1} with rabbit@{machinename2}
Error: unable to perform an operation on node 'rabbit@{machinename2}. Please see diagnostics information and suggestions below.
Most common reasons for this are:
* Target node is unreachable (e.g. due to hostname resolution, TCP connection or firewall issues)
* CLI tool fails to authenticate with the server (e.g. due to CLI tool's Erlang cookie not matching that of the server)
* Target node is not running
In addition to the diagnostics info below:
* See the CLI, clustering and networking guides on http://rabbitmq.com/documentation.html to learn more
* Consult server logs on node rabbit@{machinename2}
DIAGNOSTICS
===========
attempted to contact: ['{machinename2}']
rabbit@{machinename2}:
* connected to epmd (port 4369) on {machinename2}
* epmd reports node 'rabbit' uses port 25672 for inter-node and CLI tool traffic
* TCP connection succeeded but Erlang distribution failed
* Hostname mismatch: node "rabbit@{machinename2}" believes its host is different. Please ensure that hostnames resolve the same way locally and on "rabbit@{machinename2}"
Current node details:
* node name: 'rabbitmqcli60@{machinename1}'
* effective user's home directory: {homedirectory}
* Erlang cookie hash: {hash}
Кажется, что все в Интернете говорят, что это вызваночто файлы cookie не совпадают, но я убедился, что они одинаковы.Что мне здесь не хватает?
Запуск Erlang OTP 20.2 и rabbitMQ 3.7.3