Reputation: 48
I have 2 servers on which I separately installed cassandra Each node has its tables, all of them with replication factor = 1.
So now I want to connect those 2 servers to a cluster. Can I do that preserving the data and what the pipeline is going to be?
Can you please advise?
Upvotes: 1
Views: 138
Reputation: 87329
You can't do this in "online" fashion, as they really belong to 2 different clusters, with their own cluster ID, etc. The way you can do it is following (depending on amount of data, in this list "cluster 2" is a node with less data):
cqlsh -e 'describe schema;' > schema.cql
nodetool drain
first (required!), and then performing stopUN
in the nodetool status
, you can start to copy data:
sstableloader
won't be able stream data to tables with different structuresAnother way could be similar - stream data first to node of cluster 1, then wipe data directories on cluster 2, and join it...
Upvotes: 1