You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@cassandra.apache.org by Sagar Kohli <sa...@impetus.co.in> on 2011/03/08 08:45:14 UTC

setting consistency level

Hi,

Can we define consistency level in yaml file(or at the time of designing cassandra data modal), my question may sound stupid since m still in process of understanding Cassandra :)...

Thanks and regards
sagar

________________________________

Are you exploring a Big Data Strategy ? Listen to this recorded webinar on Planning your Hadoop/ NoSQL projects for 2011 at www.impetus.com/featured_webinar?eventid=37

Follow us on www.twitter.com/impetuscalling or visit www.impetus.com to know more.


NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.

Re: setting consistency level

Posted by aaron morton <aa...@thelastpickle.com>.
Consistency is set by the client for each read or write requests. You define the Replication Factor when creating the Keyspace, either in cassandra.yaml or as part of the create keyspace statement using the cassandra-cli. 

For background...
Check the docs if any for the high level client you are using
http://wiki.apache.org/cassandra/API
http://wiki.apache.org/cassandra/ArticlesAndPresentations

Hope that helps
Aaron

On 8/03/2011, at 8:45 PM, Sagar Kohli wrote:

> Hi,
>  
> Can we define consistency level in yaml file(or at the time of designing cassandra data modal), my question may sound stupid since m still in process of understanding Cassandra J…
>  
> Thanks and regards
> sagar
> 
> 
> Are you exploring a Big Data Strategy ? Listen to this recorded webinar on Planning your Hadoop/ NoSQL projects for 2011 at www.impetus.com/featured_webinar?eventid=37 
> 
> Follow us on www.twitter.com/impetuscalling or visit www.impetus.com to know more. 
> 
> 
> NOTE: This message may contain information that is confidential, proprietary, privileged or otherwise protected by law. The message is intended solely for the named addressee. If received in error, please destroy and notify the sender. Any use of this email is prohibited when received in error. Impetus does not represent, warrant and/or guarantee, that the integrity of this communication has been maintained nor that the communication is free of errors, virus, interception or interference.


Re: setting consistency level

Posted by Mayank Mishra <ma...@gmail.com>.
Sagar,

Consistency level defines how your reads and writes should work. You can 
defer it according to your needs, defines what are your expectations 
when you are reading/writing data. Hence, they are not static to 
Keyspace/CF metadata.

With regards,
Mayank

On 08-03-2011 13:15, Sagar Kohli wrote:
>
> Hi,
>
> Can we define consistency level in yaml file(or at the time of 
> designing cassandra data modal), my question may sound stupid since m 
> still in process of understanding Cassandra J...
>
> Thanks and regards
>
> sagar
>
>
> ------------------------------------------------------------------------
>
> Are you exploring a Big Data Strategy ? Listen to this recorded 
> webinar on Planning your Hadoop/ NoSQL projects for 2011 at 
> www.impetus.com/featured_webinar?eventid=37
>
> Follow us on www.twitter.com/impetuscalling or visit www.impetus.com 
> to know more.
>
>
> NOTE: This message may contain information that is confidential, 
> proprietary, privileged or otherwise protected by law. The message is 
> intended solely for the named addressee. If received in error, please 
> destroy and notify the sender. Any use of this email is prohibited 
> when received in error. Impetus does not represent, warrant and/or 
> guarantee, that the integrity of this communication has been 
> maintained nor that the communication is free of errors, virus, 
> interception or interference.