cassandra-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aaron morton <aa...@thelastpickle.com>
Subject Re: rename column family
Date Wed, 04 Jan 2012 09:22:43 GMT
You do not need a restart if you use nodetool refresh

Otherwise a rolling restart will do the trick. 

Cheers

-----------------
Aaron Morton
Freelance Developer
@aaronmorton
http://www.thelastpickle.com

On 4/01/2012, at 12:31 PM, Jim Newsham wrote:

> 
> Thanks that's very helpful.  I'm assuming there's no requirement to stop or restart Cassandra?
> 
> Thanks,
> Jim
> 
> On 1/2/2012 12:07 AM, aaron morton wrote:
>> 
>> Renaming a CF is not directly supported. 
>> 
>> You can:
>> 1) Add the new CF using the CLI or CQL
>> 2) On each node copy the SSTable files and use the new CF name. 
>> 3) Drop the old CF using the CLI or CQL
>> 4) The Drop CF command will create a snapshot, you may want to delete this. 
>> 
>> Hope that helps. 
>> 
>> -----------------
>> Aaron Morton
>> Freelance Developer
>> @aaronmorton
>> http://www.thelastpickle.com
>> 
>> On 31/12/2011, at 8:42 AM, Jim Newsham wrote:
>> 
>>> 
>>> How can I rename a column family (if version matters, I'm interested in both
0.8.x and 1.0.x).
>>> 
>>> Thanks,
>>> Jim
>>> 
>> 
> 


Mime
View raw message