lazy boy example using column family

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

lazy boy example using column family

mobiledreamers
i m trying to use cassandra in a mode where everytime i create a new columnfamily i do not want to restart all the nodes

a way to do this is to use super column family

1. i m also trying to figure out how to use super column families in cassandra using LAZYBOY

2. plain cassandra does not take utf8 for column names or keys
    does lazy boy let cassandra store column names or keys in ut8 using pickle.dumps or cpickle.dumps or some other method

thanks
Reply | Threaded
Open this post in threaded view
|

Re: lazy boy example using column family

Mark Robson


2009/7/27 <[hidden email]>
i m trying to use cassandra in a mode where everytime i create a new columnfamily i do not want to restart all the nodes

In my opinion you should not be doing that anyway.

Because families can have as many columns as you like anyway, it should not normally be necessary to create new families. And when you do, it will probably be part of a major release that will have some impact on your infrastructure.

You should define an operational procedure for restarting all the nodes for occasional use by ops engineers; they could choose to automate it.

Restarting all nodes isn't that onerous provided it's not done too often. It's not going to take > a few hours, even if you have quite a few.

Mark
Reply | Threaded
Open this post in threaded view
|

Re: lazy boy example using column family

mobiledreamers
1.Even though this is not the preferred way of using column families
2. and since the easy way of adding new column families has not yet been implemented

Can you show me how to do super column families in cassandra lazyboy
a simple eg., of storing a tag for a key

so Super1:Tag:key -> value is a list of tags

thanks

On Mon, Jul 27, 2009 at 12:38 AM, Mark Robson <[hidden email]> wrote:


2009/7/27 <[hidden email]>

i m trying to use cassandra in a mode where everytime i create a new columnfamily i do not want to restart all the nodes

In my opinion you should not be doing that anyway.

Because families can have as many columns as you like anyway, it should not normally be necessary to create new families. And when you do, it will probably be part of a major release that will have some impact on your infrastructure.

You should define an operational procedure for restarting all the nodes for occasional use by ops engineers; they could choose to automate it.

Restarting all nodes isn't that onerous provided it's not done too often. It's not going to take > a few hours, even if you have quite a few.

Mark



--
Bidegg worlds best auction site
http://bidegg.com