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
18
votes
3 answers

Cannot support TLS_RSA_WITH_AES_256_CBC_SHA with currently installed providers

We installed Cassandra 2.0 and configure it for SSL, and we run in this issue at startup. We're using Open JDK java-1.7.0-openjdk-1.7.0.55-2.4.7.1.el6_5.x86_64 Exception message: Caused by: java.lang.IllegalArgumentException: Cannot support …
Durga Deep
  • 437
  • 2
  • 6
  • 14
17
votes
3 answers

Cassandra: Nodetool showing "?" in Owns

I wonder why nodetools don't know the percentage of the ring handeld by my node... I created this keyspace with CREATE KEYSPACE mykeyspace WITH replication = {'class': 'SimpleStrategy', 'replication_factor': '3'} AND durable_writes =…
Jurudocs
  • 8,595
  • 19
  • 64
  • 88
17
votes
1 answer

Cassandra Java Driver- QueryBuilder API vs PreparedStatements

Datastax Java driver (cassandra-driver-core 2.0.2) for Cassandra supports PreparedStatements as well as QueryBuilder API. Any specific advantages using one over the other? Disadvantages? Documentation:…
15
votes
3 answers

how to avoid secondary indexes in cassandra?

I have heard repeatedly that secondary indexes (in cassandra) is only for convenience but not for better performance. The only case where it is recommended to use secondary indexes when you have low cardinality (such as gender column which has two…
brain storm
  • 30,124
  • 69
  • 225
  • 393
15
votes
4 answers

How to reset a lost Cassandra admin user's password?

I have full access to the Cassandra installation files and a PasswordAuthenticator configured in cassandra.yaml. What do I have to do to reset admin user's password that has been lost, while keeping the existing databases intact?
Eemeli Kantola
  • 5,437
  • 6
  • 35
  • 43
14
votes
2 answers

Overwrite row in cassandra with INSERT, will it cause tombstone?

Writing data to Cassandra without causing it to create tombstones are vital in our case, due to the amount of data and speed. Currently we have only written a row once, and then never had the need to update the row again, only fetch the data…
Andreas Mattisson
  • 1,051
  • 2
  • 19
  • 39
14
votes
4 answers

What is meant by a node in cassandra?

I am new to Cassandra and I want to install it. So far I've read a small article on it. But there one thing that I do not understand and it is the meaning of 'node'. Can anyone tell me what a 'node' is, what it is for, and how many nodes we can have…
ING
  • 219
  • 1
  • 3
  • 8
14
votes
2 answers

Querying Cassandra by a partial partition key

In Cassandra, I can create a composite partition key, separate from my clustering key: CREATE TABLE footable ( column1 text, column2 text, column3 text, column4 text, PRIMARY KEY ((column1, column2)) ) As I understand it,…
Mark
  • 11,257
  • 11
  • 61
  • 97
14
votes
2 answers

how to construct range query in cassandra?

CREATE TABLE users ( userID uuid, firstname text, lastname text, state text, zip int, age int, PRIMARY KEY (userID) ); I want to construct the following queries: select * from users where age between 30 and 40 select * from users where state…
brain storm
  • 30,124
  • 69
  • 225
  • 393
14
votes
4 answers

Enum data type in Cassandra

I am trying to migrate my database from MySQL to Cassasndra. The problem I am facing is with one of the column type defined as Enum (enum('GP','NGP','PGP','PAGP')). Cassandra does not support Enum data types (it supports collections though). Is…
Nayan
  • 353
  • 3
  • 5
  • 16
13
votes
2 answers

YCSB for Cassandra 3.0 Benchmarking

I have a cassandra ubuntu visual cluster and need to benchmark it. I try to do it with yahoo's ycsb (without use of maven if possible). I use cassandra 3.0.1 but I cant find a suitbale version of ycsb. I dont want to change to an oldest version of…
filby
  • 378
  • 3
  • 11
13
votes
1 answer

Read Operation in Cassandra at Consistency level of Quorum?

I am reading this post on read operations and consistency level in Cassandra. According to this post: For example, in a cluster with a replication factor of 3, and a read consistency level of QUORUM, 2 of the 3 replicas for the given row are…
brain storm
  • 30,124
  • 69
  • 225
  • 393
12
votes
2 answers

Best way to add multiple nodes to existing cassandra cluster

We have a 12 node cluster with 2 datacenters(each DC has 6 nodes) with RF-3 in each DC. We are planning to increase cluster capacity by adding 3 nodes in each DC(total 6 nodes). What is the best way to add multiple nodes at once.(ya,may be with 2…
techpyaasa
  • 131
  • 1
  • 6
12
votes
2 answers

How to ensure data consistency in Cassandra on different tables?

I'm new in Cassandra and I've read that Cassandra encourages denormalization and duplication of data. This leaves me a little confused. Let us imagine the following scenario: I have a keyspace with four tables: A,B,C and D. CREATE TABLE A ( …
Pedro Cunha
  • 401
  • 1
  • 6
  • 16
12
votes
1 answer

How to resolve "cassandra.cluster.NoHostAvailable" in a Python multi threaded program

I am trying to insert records into Cassandra using a multi threaded Python program. I am running this program simultaneously on 3 machines. For some time being records are getting inserted, but later I am getting below exception. I am using driver…
Rahul Vishwakarma
  • 996
  • 5
  • 17
  • 35
1
2
3
88 89