Questions tagged [cassandra-2.0]

Cassandra 2.0 is a NoSQL database sponsored by Apache.

Cassandra 2.0 is a NoSQL database sponsored by Apache.

Cassandra advertises itself to have the following merits:

  1. Proven (used by many large established companies);
  2. Performant (peforms consistently well on NoSQL benchmarks);
  3. Fault tolerant (data is automatically replicated to multiple nodes for fault-tolerance. Replication across multiple data centers is supported. Failed nodes can be replaced with no downtime.);
  4. Decentralized (there are no single points of failure and no network bottlenecks. Every node in the cluster is identical);
  5. Durable (durability is the property that writes, once completed, will survive permanently, even if the server is killed or crashes or loses power.); and
  6. Elastic (read and write throughput both increase linearly as new machines are added, with no downtime or interruption to applications);
1327 questions
7
votes
3 answers

Cassandra LOCAL_QUORUM

I'm having trouble understanding / finding information about how various quorums are calculated in cassandra. Let's say I have a 16 node cluster using Network Topology Strategy across 2 data centers. The replication factor is 2 in each datacenter…
JDesuv
  • 1,034
  • 2
  • 9
  • 19
7
votes
3 answers

Cassandra - How to retrieve most recent value

I have the following table defined in Cassandra 2.0.9: CREATE TABLE history ( histid uuid, ddate text, -- Day Date, i.e. 2014-11-20 valtime timestamp, -- value time val text, --value …
iamtheoracle
  • 317
  • 2
  • 11
7
votes
4 answers

Best approach to Cassandra (+ Spark?) for Continuous Queries?

We're currently using Hazelcast (http://hazelcast.org/) as a distributed in-memory data grid. That's been working sort-of-well for us, but going solely in-memory has exhausted its path in our use case, and we're considering porting our application…
Hugo Pinto
  • 71
  • 1
  • 5
7
votes
3 answers

JavaSparkContext not serializable

I'm using spark with cassandra, and i hava a JavaRDD of clients. And for each client, i want to select from cassandra his Interactions like this : avaPairRDD> a = client.mapToPair(new…
Amine CHERIFI
  • 1,155
  • 2
  • 20
  • 35
7
votes
2 answers

Cassandra TTL gets set to 0 on primary key if no TTL is specified on an update, but if it is, the TTL on the primary key does not change

This behavior in Cassandra seems counter-intuitive and I want to know why this is happening, and possibly work around this. Imagine I have a table with three columns: pk, the primary key, a text type, foo, a bigint, and bar, another text. insert…
2rs2ts
  • 10,662
  • 10
  • 51
  • 95
7
votes
2 answers

batch size of prepared statement in spring data cassandra

I'm getting this warning in the log: WARN [Native-Transport-Requests:17058] 2014-07-29 13:58:33,776 BatchStatement.java (line 223) Batch of prepared statements for [keyspace.tablex] is of size 10924, exceeding specified threshold of 5120 by 5804. Is…
Oggie
  • 387
  • 2
  • 5
  • 15
7
votes
1 answer

Unable to start cqlsh in Mac OS X?

I have installed cassandra 2.0 successfully. When I try to start cql 3 I get no such option: cassandra -v 2.0.9 ./cqlsh -3 Usage: cqlsh [options] [host [port]] cqlsh: error: no such option: -3
eagertoLearn
  • 9,772
  • 23
  • 80
  • 122
7
votes
3 answers

data auditing in Cassandra

How to implement auditing for cassandra data? I am looking for a open source option. Are there any features of cassandra that help with auditing? Can I use triggers to log the records into a table? I followed Triggers example and was able to get a…
suman j
  • 6,710
  • 11
  • 58
  • 109
7
votes
1 answer

Cassandra read timeout

I am pulling big amount of data from cassandra 2.0, but unfortunately getting timeout exception. My table: CREATE KEYSPACE StatisticsKeyspace WITH REPLICATION = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 }; CREATE TABLE…
7
votes
2 answers

cant' replace dead cassandra node because it doesn't exist in gossip

One of the nodes in a cassandra cluster has died. I'm using cassandra 2.0.7 throughout. When I do a nodetool status this is what I see (real addresses have been replaced with fake 10 nets) [root@beta-new:/opt] #nodetool status Datacenter:…
bluethundr
  • 1,005
  • 17
  • 68
  • 141
7
votes
1 answer

python cql driver - cassandra.ReadTimeout - "Operation timed out - received only 1 responses."

I am using Cassandra 2.0 with python CQL. I have created a column family as follows: CREATE KEYSPACE IF NOT EXISTS Identification WITH REPLICATION = { 'class' : 'NetworkTopologyStrategy', 'DC1' : 1 }; USE Identification; CREATE TABLE IF NOT…
mvallebr
  • 2,388
  • 21
  • 36
7
votes
4 answers

new cassandra node can't gossip with seed

I am trying to spin up a new node using cassandra 2.0.7. Both nodes are at Digital Ocean. The seed node is up and running and I can telnet to port 7000 on that host from the node I'm trying to start. [root@cassandra02 apache-cassandra-2.0.7]# telnet…
bluethundr
  • 1,005
  • 17
  • 68
  • 141
6
votes
2 answers

What is the recommended approach towards multi-tenant databases in Cassandra?

I'm thinking of creating a multi-tenant app using Apache Cassandra. I can think of three strategies: All tenants in the same keyspace using tenant-specific fields for security table per tenant in a single shared DB Keyspace per tenant The voice…
6
votes
1 answer

Cassandra java driver set global consistency level

So in the datastax doc, it states that ConsistencyLevel can be set globally through QueryOptions: QueryOptions qo = new QueryOptions().setConsistencyLevel(ConsistencyLevel.ALL); I noticed that this is not a static method and returns an instance of…
Quan Ding
  • 727
  • 1
  • 10
  • 21
6
votes
0 answers

Getting Exception while reading and writting from Cassandra table through Spark

I have these configuration set for Spark but every time either I am reading from or writing to Cassandra table I am getting ioException .setMaster(sparkIp) .set("spark.cassandra.connection.host", cassandraIp) …