cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pavel Kogan <>
Subject Re: Merging keyspaces
Date Fri, 27 Jun 2014 17:57:45 GMT
Thanks Robert.

When I look at column families files it seems like the format is:


So basically when I rename all files during merge of keyspaces, I will
substitute dest keyspace, column family is the same cause it is same
scheme, and I will chose arbitrary number just to avoid collision, correct?
What is the range? I can select any number?


On Fri, Jun 27, 2014 at 1:35 PM, Robert Coli <> wrote:

> On Fri, Jun 27, 2014 at 8:28 AM, Pavel Kogan <>
> wrote:
>> I want to merge one keyspace (A) data into another (B) with exactly same
>> scheme. The partition keys of all records are unique in both keyspaces. Can
>> I just copy all files under keyspace A column families into keyspace B
>> column families folders, after running nodetool flush? Is filenames
>> collision possible?
> 1) yes, you can do this. the most space efficient way to do so would be
> with hard links. [1]
> 2) yes, filename collision is possible, be careful to avoid it.
> 3) you should copy/hard-link/move the files with the node down, instead of
> trying to use "nodetool refresh" (which is unsafe)
> =Rob
> [1]

View raw message