Reputation: 436
Starting from one host running Cassandra, I am trying to add a new node and form a cluster.
I update the seeds list on both hosts and after restarting both nodes, I do nodetool status
and see both nodes forming a cluster. However, I am seeing some data loss issue. I am not seeing all the data that I added to a column family before I added the new node.
Steps to reproduce:
Start a node with following settings in cassandra.yaml
initial_token:
num_tokens:256
seed_list: host1
Create a keyspace and a column family and enter some data
- seeds: host1, host2
Upvotes: 5
Views: 2324
Reputation: 991
Will suggest you to run a nodetool cleanup
in both the nodes so that keys get distributed.
Upvotes: 1
Reputation: 1162
Running:
nodetool cleanup
nodetool repair
nodetool rebuild
should solve the issue.
Upvotes: 1