Questions tagged [cassandra]

Apache Cassandra is a highly scalable, eventually consistent, distributed, structured row store. Questions about Cassandra server administration should be asked on https://dba.stackexchange.com/questions/tagged/cassandra .

Apache Cassandra is a highly scalable, eventually consistent, distributed, structured row/column store. Cassandra brings together the distributed systems technologies from Dynamo and the data model from Google's . Like , Cassandra is eventually consistent. Like BigTable, Cassandra provides a ColumnFamily-based data model richer than typical key/value systems.

Cassandra's Dynamo-based cluster model provides linear scalability and fault tolerance on commodity hardware or cloud infrastructure. Its support for replicating across multiple data centers is best-in-class, providing low latency and the ability to survive entire data center outages.

Cassandra's data model offers the convenience of column indexes with the performance of log-structured updates and powerful built-in caching with the fastest write performance as compared to other database solutions and makes it a compelling option for big data processing. It provides linear scalability with the provision to add/remove nodes on the fly without downtime.

Cassandra was open-sourced by Facebook in 2008 and quickly became a top-level Apache project. Today, it's widely used by companies in many markets.

Official links:

Documentation

Useful Links:

20596 questions
5
votes
1 answer

python ORM for apache cassandra

Which is the best python ORM based on Flask framework for Apache Cassandra 2.x? The ORM you are sugesting, should have best features, like that of pycassa or even more. It will be most useful, if you share with examples on any URLs.
Swam Guru
  • 473
  • 5
  • 9
5
votes
1 answer

What are native transport requests in Cassandra?

When looking at node details in Datastax OpsCenter: We can see that there were 34903422 "native-transport-requests", but 1072 were blocked. Could someone explain what is native transport request? What is that in relation to mutation? Is it normal…
piotrwest
  • 2,098
  • 23
  • 35
5
votes
2 answers

Cassandra uuid or text with uuid from Java

I was thinking, instead of creating Cassandra table with uuid column if I create a text column , at the end I am going to insert in it Java.util.uuid.random string. So what will be the difference performance wise if I use text in place of Cassandra…
5
votes
0 answers

Lost data in high frequency insertion to cassandra using datastax java driver 2.1.7

I am new to apache-cassandra and i am planning to use it as the data repository of a new project for its write performance. I have setup a cassandra cluster with three nodes and replication factor 3. My program A uses datastax's…
firew
  • 101
  • 6
5
votes
1 answer

Spark SQL + Cassandra: bad performance

I'm just starting using Spark SQL + Cassandra, and probably am missing something important, but one simple query takes ~45 seconds. I'm using cassanda-spark-connector library, and run the local web server which also hosts the Spark. So my setup is…
Haspemulator
  • 11,050
  • 9
  • 49
  • 76
5
votes
1 answer

Cassandra (CQL) RoleManager disable

I'm currently using the following configuration for Cassandra: authenticator: PasswordAuthenticator authorizer: org.apache.cassandra.auth.CassandraAuthorizer My question is: How can I disable role management to use normal CQL…
Ted Huinink
  • 846
  • 1
  • 7
  • 14
5
votes
2 answers

Cassandra alter column type: which types are compatible?

There's some patchy information on the interwebs about some examples when column type can't be changed. For example, on the DataStax site there's a mention: Changing the type of a clustering column. Changing columns on which an index is…
Haspemulator
  • 11,050
  • 9
  • 49
  • 76
5
votes
3 answers

Inserting multiple types in map in cassandra

Is it possible in cassandra map to input different data types like if I have a table like (id int, value map) Now I want to insert values in this table like (1,{'test':'test1'}) (2,{'a':1}) (3,{'c':2})
Nipun
  • 4,119
  • 5
  • 47
  • 83
5
votes
2 answers

Cassandra Update and Delete in Clustering column Using IN operator

This is my table CREATE TABLE quorum.omg ( id int, a int, b text, c text, PRIMARY KEY ((id, a), b) ) WITH CLUSTERING ORDER BY (b DESC) When i'am doing a select statement using IN operator, it works fine for last partition key and last clustering…
Jagadeesh
  • 421
  • 5
  • 16
5
votes
1 answer

Cassandra - Write doesn't fail, but values aren't inserted

I have a cluster of 3 Cassandra 2.0 nodes. My application I wrote a test which tries to write and read some data into/from Cassandra. In general this works fine. The curiosity is that after I restarted my computer, this test will fail, because after…
5
votes
4 answers

Securing Cassandra communication with TLS/SSL

We would like to protect the Cassandra against man-in-the-middle attacks. Is there any way to configure Cassandra in a way that the client-server and server-server (replication) communications are SSL encrypted? thank you
akouzmit
  • 51
  • 1
  • 2
5
votes
2 answers

is there any trick to do wildcards search on apache cassandra?

i need to do something like this on apache cassandra, SELECT * FROM mytable where address = "%indonesia%" any idea how to do it on cassandra?
zho
  • 643
  • 1
  • 12
  • 27
5
votes
1 answer

Spark Cassandra connector filtering with IN clause

I am facing some issues with spark cassandra connector filtering for java. Cassandra allows the filtering by last column of the partition key with IN clause. e.g create table cf_text (a varchar,b varchar,c varchar, primary key((a,b),c)) Query :…
107
  • 552
  • 3
  • 26
5
votes
5 answers

Spark-Cassandra Connector : Failed to open native connection to Cassandra

I am new to Spark and Cassandra. On trying to submit a spark job, I am getting an error while connecting to Cassandra. Details: Versions: Spark : 1.3.1 (build for hadoop 2.6 or later : spark-1.3.1-bin-hadoop2.6) Cassandra :…
5
votes
1 answer

maximum number of partitions limit per table in cassandra

I am new to cassandra, As per my understanding depending on the configured partitioner(murmur3partitioner or randomaccess partitioner) there is a partitions limit per table. if we configure keyspace with murmur3partitioner which would enforce the…
Raju
  • 169
  • 2
  • 7