cassandra 'handshaking version with'

不想你离开。 提交于 2020-04-17 19:34:06

问题


I have 2 nodes

ip1 node1's ip
ip2 nodes2's ip

each node starting but not connecting each other.. For example nodetool status show own node. Not other node

in node1's log:

Handshaking version with /ip2

in node2's log there are no info or error messages related to node1

no error messages both of them. What causes this problem?


回答1:


A node should not normally be in its own seed list; if it is, it will not try to join the existing cluster. Only the first node in a cluster should be in its own seed list.

Try putting only ip1 in both nodes' seed list and leave ip2 out of the seed list entirely. Also, set auto_bootstrap: true on node 2. Shut down the nodes, remove the /var/lib/cassandra directory from both nodes, and then start node 1. When node 1 finishes starting up (check for status UN using nodetool status), then start node 2. It should now talk to node 1 and join the cluster.



来源:https://stackoverflow.com/questions/60713930/cassandra-handshaking-version-with

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!