Delete semantics

2015-08-21 Thread Cameron Little
Can anyone help me understand the semantics of the DELETE cql statement, specifically the WHERE… part? Taken literally, the datastax documentation at http://docs.datastax.com/en/cql/3.1/cql/cql_reference/delete_r.html seems t

Re: GossipingPropertyFileSnitch vs Ec2Snitch

2015-08-21 Thread Robert Coli
On Fri, Aug 21, 2015 at 2:37 AM, Alain RODRIGUEZ wrote: > So what would be the procedure to go from EC2Snitch to GPFS ? > > I see 2 possibilities and I am not sure of the result of each of these: > > - Node by node, on a rolling restart way, and making sure that you use the > former DC names and

Re: date type and SimpleDateSerializer for Cassandra-2.2.0

2015-08-21 Thread Alex Popescu
Hi Philippe, The Date data type is new in Cassandra 2.2 and thus you'll have to use the latest DevCenter (1.4, which I think you are already using) and Java driver (2.2RC3). You'll find some details about using these new types in this blog post http://www.datastax.com/dev/blog/datastax-java-drive

Re: Question about how to remove data

2015-08-21 Thread Sebastian Estevez
To clarify, you do not need a ttl for deletes to be compacted away in Cassandra. When you delete, we create a tombstone which will remain in the system __at least__ gc grace seconds. We wait this long to give the tombstone a chance to make it to all replica nodes, the best practice is to run repair

Re: Written data is lost and no exception thrown back to the client

2015-08-21 Thread Sebastian Estevez
Please let us know the Jira number. All the best, [image: datastax_logo.png] Sebastián Estévez Solutions Architect | 954 905 8615 | sebastian.este...@datastax.com [image: linkedin.png] [image: facebook.png]

Re: Write request in Cassandra?

2015-08-21 Thread Panagiotis Garefalakis
Definitely 2: https://wiki.apache.org/cassandra/ArchitectureInternals http://www.slideshare.net/grro/cassandra-by-example-the-path-of-read-and-write-requests On Fri, Aug 21, 2015 at 4:54 PM, Laing, Michael wrote: > > https://academy.datastax.com/courses/ds201-cassandra-core-concepts/internal-ar

Re: Write request in Cassandra?

2015-08-21 Thread Laing, Michael
2 is more correct. On Fri, Aug 21, 2015 at 11:48 AM, ibrahim El-sanosi < ibrahimsaba...@gmail.com> wrote: > Dear folks, > > > I have doubt on how Cassandra performs a write request; I have two > scenarios, please read them and ensure which one is correct? > > > Assume we have cluster consists of

Re: Write request in Cassandra?

2015-08-21 Thread Laing, Michael
https://academy.datastax.com/courses/ds201-cassandra-core-concepts/internal-architecture-replication On Fri, Aug 21, 2015 at 11:53 AM, Laing, Michael wrote: > 2 is more correct. > > On Fri, Aug 21, 2015 at 11:48 AM, ibrahim El-sanosi < > ibrahimsaba...@gmail.com> wrote: > >> Dear folks, >> >> >>

Write request in Cassandra?

2015-08-21 Thread ibrahim El-sanosi
Dear folks, I have doubt on how Cassandra performs a write request; I have two scenarios, please read them and ensure which one is correct? Assume we have cluster consists of 4 nodes N1, N2, N3, and N4. As Cassandra distributes the nodes in ring topology, the nodes links as following: N-->N-->

date type and SimpleDateSerializer for Cassandra-2.2.0

2015-08-21 Thread Philippe Suray
Hello, I have recently installed Datastax-Cassandra-2.2.0 on a Debian system. I successfully started Cassandra. In order to test it, I have written a small client in Java that use cassandra-driver-core-2.1.7.1.jar from Datastax. I also installed the DevCenter in order to create a keyspace and a

Re: Written data is lost and no exception thrown back to the client

2015-08-21 Thread Robert Wille
But it shouldn’t matter. I have missing data, and no errors, which shouldn’t be possible except with CL=ANY. FWIW, I’m working on some sample code so I can post a Jira. Robert On Aug 21, 2015, at 5:04 AM, Robert Wille mailto:rwi...@fold3.com>> wrote: RF=1 with QUORUM consistency. I know QUORU

Re: Written data is lost and no exception thrown back to the client

2015-08-21 Thread Robert Wille
RF=1 with QUORUM consistency. I know QUORUM is weird with RF=1, but it should be the same as ONE. If’s QUORUM instead of ONE because production has RF=3, and I was running this against my test cluster with RF=1. On Aug 20, 2015, at 7:28 PM, Jason mailto:jkushm...@rocketfuelinc.com>> wrote: Wha

Re: GossipingPropertyFileSnitch vs Ec2Snitch

2015-08-21 Thread Alain RODRIGUEZ
Hi guys, I am also wondering about this kind of stuff, since we are going out of AWS and were using EC2Snitch. I felt free to write it here, since it looks linked to previous comments. @John, we have been using EC2Snitch for many years, and it just works fine ! Plus, we don't have to keep the GPF