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
2 answers

How to update clustering key in cassandra using update query?

This is my table structure and I am updating the sequence with the following query: Update styles set sequence=1 where styleid = 'CLASSIC'; I am getting error message as PRIMARY KEY part sequence found in SET part Missing PRIMARY KEY part…
Vicky Singh Gill
  • 323
  • 2
  • 8
  • 19
5
votes
2 answers

Spark Cassandra connector - Range query on partition key

I'm evaluating spark-cassandra-connector and i'm struggling trying to get a range query on partition key to work. According to the connector's documentation it seems that's possible to make server-side filtering on partition key using equality or IN…
thiago
  • 117
  • 1
  • 7
5
votes
1 answer

How do I store and retrieve TimeUUIDType types with Net::Cassandra::Easy?

Doing the following: my $c = Net::Cassandra::Easy->new(server => 'localhost', port => '9160', keyspace => 'Keyspace1'); $c->connect(); my $uuid_bin = Data::UUID->new()->create_bin(); eval { $result = $c->mutate([$key], …
5
votes
1 answer

How can i delete/drop entire keyspace using php: cassandra :thrift

How can i delete/drop entire keyspace using php: cassandra :thrift
user320343
  • 353
  • 1
  • 3
  • 11
5
votes
2 answers

Can cassandra compaction strategy be changed dynamically?

I am quite new to using Cassandra and have a basic question that I was seeking an answer to. I am using the default compaction strategy which the Size-Tiered. I am aware that this can be changed to the Levelled Compaction strategy by running a…
Rohit
  • 523
  • 2
  • 6
  • 25
5
votes
2 answers

Mutation of 17076203 bytes is too large for the maxiumum size of 16777216

I have "commitlog_segment_size_in_mb: 32" in the cassandra settings but the error below indicates maximum size is 16777216, which is about 16mb. Am I looking at the correct setting for fixing the error below? I am referring to this setting based on…
vrtx54234
  • 2,196
  • 3
  • 30
  • 53
5
votes
1 answer

Cassandra UDTs as primary key

The official documentation tells us to not use UDTs for primary keys. Is there a particular reason for this? What would the potential downsides be in doing this?
ashic
  • 6,367
  • 5
  • 33
  • 54
5
votes
1 answer

SLF4J: Failed toString() invocation on an object of type [com.datastax.driver.core.Responses$Result$Rows]

Using cassandra core: 2.1.0 slf4j: slf4j-api-1.7.6.jar slf4j-log4j: slf4j-log4j12-1.7.2.jar I am getting this message printed in the tomcat catalina.out quite frequently without any loss of functionality in the application: SLF4J: Failed…
geekay
  • 215
  • 2
  • 7
5
votes
1 answer

Unable to add node via OpsCenter

When trying to add a node via OpsCenter 5.0.1 I get the following The Ec2Snitch is being used by this cluster. Provisioning nodes using this endpoint_snitch is not supported at this time. Which seems contrary to the instructions given here.
James Tyrrell
  • 363
  • 3
  • 10
5
votes
1 answer

Storing schema less data in cassandra

I am creating an application for auditing my web application. so I want to store all audit log in CASSANDRA db, and data is not pre-defined that, what we gonna store into db, basically It should be store into a schema less db. so how we can store it…
Nitish Mishra
  • 77
  • 2
  • 9
5
votes
2 answers

Compilation errors with spark cassandra connector and SBT

I'm trying to get the DataStax spark cassandra connector working. I've created a new SBT project in IntelliJ, and added a single class. The class and my sbt file is given below. Creating spark contexts seem to work, however, the moment I uncomment…
ashic
  • 6,367
  • 5
  • 33
  • 54
5
votes
3 answers

cassandra - start accepting writes after nodetool drain

Once we do 'nodetool drain', what can we do to make it start accepting writes again? on node A I did nodetool drain. On another node B, when I run nodetool repair, it says: Cannot proceed on repair because a neighbor (/) is dead: session…
vrtx54234
  • 2,196
  • 3
  • 30
  • 53
5
votes
1 answer

Cassandra won't start in linux as a service

I have a debian linux image running on Google compute. Can successfully get cassandra working with "sudo cassandra" or "sudo cassandra -f" but then as soon as I log off this stops working. But when I try to run this as a service it simply doesnt say…
user3428172
  • 147
  • 2
  • 6
5
votes
1 answer

How to insert map type into cassandra using cassandra-driver for python

Since, cassandra supports map type. I want to insert a python dict into cassandra. I tried this: cql = "Insert into table_name (my_key, name, my_dict) values (%s, %s, %s)" % (my_key, name, my_dict) session.execute(cql) This obviously didn't…
extraDarker
  • 119
  • 4
  • 13
5
votes
1 answer

Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon

I want to try Cassandra. When trying to run Cassandra, writes an error: Error: Could not find or load main class org.apache.cassandra.service.CassandraDaemon What's the problem? Java -version Java version "1.7.0_67" Java (TM) SE Runtime…