What's the deal with Deno? We talk with a major contributor to find out. Listen now.

Questions tagged [cassandra]

Apache Cassandra is an open source distributed database management system. It is designed to handle very large amounts of data spread out across many commodity servers while providing a highly available service with no single point of failure. It is a NoSQL solution.

Filter by
Sorted by
Tagged with
0
votes
0answers
18 views

is there a DDL generator out there where you can start with CSV/TSV to create DDL for Cassandra

Is there a DDL generator out there where you can start with CSV/TSV (or maybe even JSON) to create DDL for Cassandra?
0
votes
1answer
157 views

Hints gc_grace and expirations

Have 3 node cluster. RF=3. Table with gc_grace_seconds = 120 secs. max_hints duration as default at 3 hours. inserted a row nodetool flush on all the 3 nodes bring down node 3 delete the inserted ...
1
vote
1answer
28 views

Cassandra nodetool repair open files issue

I am using Cassandra 3.6. After nodetool repair Cassandra start takes too much time. The message is: ViewManager.java:226 - Not submitting build tasks for views in keyspace system_schema as storage ...
0
votes
1answer
270 views

Cassandra goes down after some some days

I am running cassandra in 3 node cluster with replication factor 3. It was working fine for 2 days and all of a sudden it went down. I am beginner to cassandra database. I went through documentation ...
0
votes
1answer
1k views

dropping a table does not delete the directories on the disk

I am just testing the drop table command in Cassandra 3.11. The sequence is as follows: Load data worth 10gb drop the table on the node, nodetool flush nodetool clearsnapshot nodetool cleanup ...
1
vote
2answers
2k views

Cassandra querying without full primary key

As far as I understand there are no secondary indices with multiple columns, only single columns. So how do I solve the index problem I'm having? This is my table: CREATE TABLE IF NOT EXISTS logstv....
1
vote
1answer
279 views

Cassandra nodes are not equal

We have two nodes. Node1 was down for a long time. During this time Node2 raised 1 TB capacity when Node1 has 100 GB. We tried to repair Node1 with nodetool repair but nothing changed. After that we ...
1
vote
1answer
150 views

What happens if one DC goes down in Cassandra multi DC setup?

We have a Cassandra multi DC setup with 3 nodes in each DC, enabled with NetworkTopologyStrategy and RF 3. The java client interacts with Cassandra cluster using read and write consistency as ...
1
vote
0answers
20 views

Elassandra data modeling

In Cassandra, everyone always stresses how important data modeling is, and rightfully so. However, when using Elassandra, we have Elasticsearch baked in. How does should change how we think about ...
0
votes
0answers
21 views

Choosing database type and schema for rental availability

I'm looking at what type of database and schema is best to use for product rental availability. The requirements are simply that it needs to cater for high writes and low reads. So I've been pushed ...
0
votes
0answers
39 views

Sigle sign on solution for Cassandra with Keycloak

Please suggest if there are possible solution of itegrating SSO for Cassandra with keycloak. I have searched for blogs for keyclock integration with cassandra. I couldn't find how to integrate these ...
1
vote
1answer
168 views

Can I use result of one query inside other query in Cassandra

I need to delete all rows with given clustering column value. I don't have partition key so I don't have complete primary key. To delete record from Cassandra table we need to provide specific ...
1
vote
1answer
27 views

Read from partition in local cassandra node only

I'm aware that I can read from any cassandra node and it acts as coordinator to read from the node containing a specific partition, but can I read data only from the partition which is on the node I'm ...
0
votes
1answer
33 views

Cassandra security - private IPs with some VPN solution or public IPs and open ports?

there are many different solutions to secure a cassandra cluster. One of them is to enter public IPs and open the 7000/9042 port on each sever. Another one is to have everything in a private network ...
0
votes
0answers
28 views

How to use Apache Calcite (+ Cassandra) through NodeJS

When reading the documentation for Apache Calcite, it seemed astonishingly attractive as being part of a team currently porting an SQL application into Cassandra's popular CQL. After some more digging,...
11
votes
2answers
28k views

What is a good way to copy data from one Cassandra ColumnFamily to another on the same Keyspace (like SQL's INSERT INTO)?

Trying to find a way to easily transfer all the rows from a Cassandra ColumnFamily/Table to another. The COPY command, as I understand, is a good option. However, as it dumps all the data to .csv on ...
7
votes
2answers
6k views

Modeling Graph Data in Cassandra DB

I want to use Apache Cassandra to store a large amount of graph data according to a property graph model. The model contains the following entities: Vertices: Contains a map of key/value pairs (...
1
vote
1answer
346 views

does a php 7.3 cassandra driver exist?

I have php 7.3 on Debian 10. I'm trying to get the Apache Cassandra driver for php 7.3. The one provided by datastax (https://github.com/datastax/php-driver) only works up to 7.1, and the pecl one (...
0
votes
0answers
53 views

utf8 errors retrieving strings from Cassandra

I have been tasked with fixing a problem seen occasionally in a Cassandra database when strings are retrieved, either programmatically or in CQLSH, and currently running with Cassandra version 2.1.15 ...
2
votes
3answers
7k views

how to import a huge csv file into Cassandra?

I am trying to import a csv file into Cassandra which is very long. These are food products: ingredients, nutrition, labels... It comes from Open Food Data. List information on food products: ...
0
votes
1answer
46 views

Cassandra query response time degradation

I am experimenting with Cassandra on 4 sites with 2 nodes on each one. Have small network latency between them. I always query the data in DC where I inserted it. I see very strange behavior: when I ...
0
votes
0answers
18 views

Backup ScyllaDB/Cassandra remotely with compression

How can I backup ScyllaDB/Cassandra remotely? With PostgreSQL I can do something like this (backup, zip, transfer): mkdir -p tmp/backup OUTFILE=tmp/backup/db_backup_`date +%Y-%m-%d_%H%M%S`.sql.xz ...
0
votes
0answers
15 views

How to query on collection containing user defined data types in cassandra?

I am using Cassandra and I have created Type Participant as follows: CREATE TYPE soccer1.participant ( username text, participant_type text ); Table: CREATE TABLE soccer1.playground_table ( ...
2
votes
1answer
195 views

Binary storage in Cassandra, HBase

I am looking at some implementations of Cassandra and HBase for medium-sized data sets (~1M resources) to be exposed to clients as graphs (via e.g. Tinkerpop). I would also like to store binaries in ...
0
votes
0answers
27 views

Cannot Connect to Cassandra on GCE

I just started learning how to use Cassandra, but at the moment I am trying to troubleshoot a small problem with GCE and Cassandra. I am not able to connect to it at all. I am using this Deployment ...
1
vote
1answer
157 views

How to insert nested UDT types

I have all these case classes :- case class Role(id:UUID, roleName:String, description:Option[String], isVisible:Boolean, isDefault:...
1
vote
0answers
48 views

Cassandra not returning the row of the specified primary key

First of all, my table is structured like this: CREATE TABLE timeseries_data.test_data ( date timestamp PRIMARY KEY, data1 float, data2 float ) WITH bloom_filter_fp_chance = 0.01 AND ...
1
vote
0answers
16 views

compaction strategies and high performance storage

My apologies for this being a somewhat newbie question. However, my understanding of Cassandra is that is use three different compaction strategies: are these tunable, or is this area a black box, i....
2
votes
0answers
37 views

Querying a High Cardinality Field

I am designing a data model for our orders for our upcoming Cassandra migration. An order has an orderId (arcane UUID field) and an orderNumber (user-friendly number). A getOrder query can be done by ...
0
votes
0answers
26 views

Cassandra data modelling for IOT devices

We are building a micro service based IOT platform with a dashboard and views of various sensors etc. I have seen a few data modelling videos but I am not able to arrive at a good data model in ...
6
votes
2answers
6k views

Migration from Cassandra 2.x to 3.x: schema_keyspaces table is gone. How do you query system keyspaces?

I just migrated from Cassandra 2.x to 3.x (specifically, 3.4). Now the system tables have completely changed, and these changes are not in the documentation. If you look at the current CQL docs for ...
1
vote
0answers
82 views

Cassandra slow read performance after migrating to new AWS instance class

Cluster of 3 cassandra nodes as a dev environment. Used to run in AWS on i3.2xlarge; migrated as a test to i3en.2xlarge to evaluate for later migrating production cluster to. When running cassandra-...
1
vote
1answer
2k views

Python version issue on Cassandra 3.11.2

Searching around I found a lot of thread about this problem (coming from 2012) but I can't find an official solution: running cqlsh.bat File "C:\apache-cassandra-3.11.2\bin\\cqlsh.py", line 146 ...
1
vote
0answers
17 views

Cassandra multi data centre cluster configuration [closed]

We are decided to use "cassandra" as a database and now want to go with cluster with two datacenters DC1 & DC2. This DC2 is for backup purpose and it is replica of DC1. Initially we are expecting ...
4
votes
0answers
110 views

Can Cassandra prevent TTL from updating on upsert of table

I have a Cassandra table that is like this... CREATE TABLE IF NOT EXISTS analytics.data( id double, data text, PRIMARY KEY(id, data) ) WITH default_time_to_live = 120 AND gc_grace_seconds ...
0
votes
1answer
32 views

Stopping N number of nodes of a Cassandra cluster running on a single machine using bash script

I have set up a Multi-Node cassandra (3.11) cluster (with N nodes) in a single Ubuntu machine. I have written a bash script which Creates N copies of conf folder Configures the cassandra yaml file ...
3
votes
1answer
671 views

Cassandra multi-DC:write on LOCAL and read from any DC

We use a multi-data center (DC) cassandra cluster. During write on to the cluster, I want only LOCAL DC to perform writes on its nodes as we are already routing the write requests to the desired DC ...
1
vote
1answer
2k views

Copy/move data from one cassandra server to another

I'm in the midst of replacing a kubernetes stack (to more specific: moving it from a locally hosted cluster to an AKS cluster in Azure), and as a result have to re-create all of my services, including ...
0
votes
1answer
179 views

how to disable delete in replication Cassandra datastax

my previous scenario i used Sql server one instance in amazon for live and the second in local network for archiving by disable delete in replication can i do this in Cassandra or what best ...
2
votes
2answers
657 views

Correct way to perform backup of Cassandra/Scylladb

What's the correct(advisable) method to backup a cassandra or scylladb so that we can restore it on development environment with ease?
2
votes
2answers
158 views

Allocate space in Cassandra

We run a Cassandra cluster with 2 DC, 3 nodes each (2 RF). The state of the cluster is quite bad (never repaired) and the disks were getting full so we added additional nodes which after the bootstrap ...
2
votes
2answers
262 views

Cassandra in a Public Cloud - Which Snitch?

I am planning on deploying Cassandra in a public cloud (like Amazon AWS). The cluster will span multiple zones and regions. The cluster will also require logical DC separation within a given region. ...
2
votes
2answers
351 views

Cassandra query performs differently at different times

I am using apache-cassandra-2.0.12 in production, with network topology strategy and ReplicationFactor : 3 in a cluster with 2 DC’s each contains 4 nodes While analyzing the response time for the ...
2
votes
1answer
527 views

What may be the consequences of deleting the system keyspace?

I have a Cassandra cluster composed of 2 nodes. One node could not start Cassandra yesterday. I deleted the system keyspace directory and I started the node again. The node is running after system ...
1
vote
2answers
321 views

Does Cassandra CQL provide a command to generate an execution plan?

In Oracle and other DBs you can generate an execution plan for SQL. Is this possible for Cassandra? I want to determine if it is possible to measure the relative complexity of several CQL statements ...
1
vote
1answer
164 views

User Grant in cassandra DB

I would like a user abc to access only a single keyspace and no other keyspaces in the Database. How can I achieve so?
1
vote
0answers
197 views

Why getting Error accessing Cassandra with DataStax ODBC Driver?

We are using Cassandra 2.2.11, and trying to configure DataStax ODBC driver. We are getting the following error message: SQLSTATE: HY000[DataStax][CassandraODBC] (10) Error while executing a query ...
0
votes
1answer
11 views

Show cassandra help documentation in terminal instead of browser

I've just started playing around with Cassandra through the cqlsh cli. When using the help command for the topics the documentation opens in the browser. Is there a way to show the documentation in ...
1
vote
0answers
187 views

Cassandra pool warning displaying continuously

I am using the Cassandra driver for python in Spyder. I am trying to fetch some data from Cassandra table. Here is my code: from cassandra.cluster import Cluster cluster=Cluster(['some_ip']) session=...
15
votes
1answer
736 views

Is it safe to add a new node to a Cassandra cluster while a repair is running?

I'm getting ready to expand an existing Cassandra cluster. I have repairs scheduled to run on a reoccurring basis. Do I need to disable repairs when adding a new node to a cluster, or can I ...