问题
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