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
9
votes
1 answer

What options are there to speed up a full repair in Cassandra?

I have a Cassandra datacenter which I'd like to run a full repair on. The datacenter is used for analytics/batch processing and I'm willing to sacrifice latencies to speed up a full repair (nodetool repair). Writes to the datacenter is…
Ztyx
  • 14,100
  • 15
  • 78
  • 114
9
votes
1 answer

Cassandra Static Column design

How are static columns stored internally in cassandra? Can someone please post an example discussing the design implementation of static column in cassandra?
Sachin Janani
  • 1,310
  • 1
  • 17
  • 33
9
votes
1 answer

How Cassandra select the node to send request?

Imagine a Cassandra cluster needs to be accessed by a client application. In Java api we create a cluster instance and send the read or write request via a Session. If we use read/write consistency ONE, how the api select the actual node…
Anayag
  • 145
  • 1
  • 10
9
votes
1 answer

are writes always faster than reads in Cassandra?

I was listening to this talk on Data modelling in Cassandra. The speakers makes the general statement that 'writes are faster than reads in Cassandra'. Is this case always true? if so why?
eagertoLearn
  • 9,772
  • 23
  • 80
  • 122
8
votes
0 answers

What is the minimum System requirement to launch janusgraph

I just started JanusGraph and my total RAM usage is more than 5GB without firing any queries. I have the following dependent services running JanusGraph GremlinServer (via JanusGraph) Cassandra (via JanusGraph) Elasticsearch (via…
Akshay
  • 359
  • 1
  • 3
  • 14
8
votes
2 answers

how to archive and purge Cassandra data

I have a cassandra cluster with multiple data centres. I want to archive data monthly and purge that data. There are numerous articles of backing up and restoring but not where its mentioned to archive data in cassandra cluster. Can someone please…
Nipun
  • 4,119
  • 5
  • 47
  • 83
8
votes
2 answers

Is it possible to insert/write data without defining columns in Cassandra?

I am trying to understand the fundamentals of Cassandra data model. I am using CQL. As per I know the schema must be defined before anyone can insert into new columns. If someone needs to add any column can use ALTER TABLE and can INSERT value to…
Chaity
  • 1,348
  • 13
  • 20
8
votes
1 answer

How to set up Cassandra client-to-node encryption with the DataStax Java driver?

I've set up node-to-node encryption on my Cassandra cluster. Now I want to set up client-to-node. According to this documentation, it should be as easy as taking the SSL certificate of my client and importing it into every node's truststore. I don't…
2rs2ts
  • 10,662
  • 10
  • 51
  • 95
8
votes
3 answers

what does `create index` do in cassandra tables?

consider this example: create table bite ( id varchar PRIMARY KEY, feedid varchar, score bigint, data varchar ); create index bite_feedid on bite (feedid); create index bite_score on bite (score); I am not sure what the…
eagertoLearn
  • 9,772
  • 23
  • 80
  • 122
8
votes
1 answer

Understanding Cassandra's storage overhead

I have been reading this section of the Cassandra docs and found the following a little puzzling: Determine column overhead: regular_total_column_size = column_name_size + column_value_size + 15 counter - expiring_total_column_size =…
Giovanni Botta
  • 9,626
  • 5
  • 51
  • 94
7
votes
4 answers

How to switch Keyspace in Cassandra using CQL?

I used USE billKeyspace; to enter a keyspace and start using it. Now I want to exit this keyspace and enter another keyspace. How to do that? If I use exit; or quit; it exits out of cql session itself and then I have to connect again.
Pankaj
  • 474
  • 1
  • 3
  • 16
7
votes
1 answer

Cassandra LeveledCompactionStrategy and high SSTable number per read

We are using cassandra 2.0.17 and we have a table with 50% selects, 40% of updates and 10% of inserts (no deletes). To have high read performance for such table we found that it is suggested to use LeveledCompactionStrategy (it is supposed to…
Jakub Troszok
  • 99,267
  • 11
  • 41
  • 53
7
votes
2 answers

CQL: Invalid set literal for values of type map

I have this table create table constants_values ( key_name_1 text, key_name_2 text, values map>, PRIMARY KEY(key_name_1, key_name_2) …
Manish Kumar
  • 10,214
  • 25
  • 77
  • 147
7
votes
1 answer

What does "nodetool compact" do for DateTieredCompactionStrategy?

The documentation for nodetool compact says: This command starts the compaction process on tables that use the SizeTieredCompactionStrategy and DateTieredCompactionStrategy. You can specify a keyspace for compaction. But what it does for…
piotrwest
  • 2,098
  • 23
  • 35
7
votes
1 answer

Adding nodes to Cassandra Cluster

I have a 1 node - 1 cluster Cassandra running on my local machine. I want to see how Cassandra scales up, when I simply add the second node to the same cluster. The second node that I am adding will also run from my local machine. I have been…
ATP
  • 832
  • 1
  • 15
  • 29