Check CQL version with Cassandra and cqlsh?

There are a couple of ways to go about this. From within cqlsh, you can simply show version. aploetz@cqlsh> show version [cqlsh 5.0.1 | Cassandra 2.1.8 | CQL spec 3.2.0 | Native protocol v3] However, that only works from within cqlsh. Fortunately, you can also query system.local for that information as well. aploetz@cqlsh> SELECT cql_version … Read more

difference between exactly-once and at-least-once guarantees

Below definitions are quoted from Akka Documentation at-most-once delivery means that for each message handed to the mechanism, that message is delivered zero or one times; in more casual terms it means that messages may be lost. at-least-once delivery means that for each message handed to the mechanism potentially multiple attempts are made at delivering … Read more

Is there any query for Cassandra as same as SQL:LIKE Condition?

Since Cassandra 3.4 (3.5 recommended), LIKE queries can be achieved using a SSTable Attached Secondary Index (SASI). For example: CREATE TABLE cycling.cyclist_name ( id UUID PRIMARY KEY, lastname text, firstname text ); Creating the SASI as follows: CREATE CUSTOM INDEX fn_prefix ON cyclist_name (firstname) USING ‘org.apache.cassandra.index.sasi.SASIIndex’; Then a prefix LIKE query is working: SELECT * … Read more

Cassandra – transaction support

Short answer: No. By design, Cassandra values availability and partition tolerance over consistency1. Basically, it’s not possible to get acceptable latency while maintaining all three of qualities: one has to be sacrificed. This is called CAP theorem. The amount of consistency is configurable in Cassandra using consistency levels, but there doesn’t exist any semantics for … Read more