Questions tagged [cassandra-4.0]

Cassandra 4.0 is a NoSQL database sponsored by Apache. Use this tag for questions relating to Cassandra versions from the 4.x release cycle. Currently in beta.

Cassandra is a NoSQL database sponsored by Apache.

As of this writing, Cassandra 4.0 is still in beta.

55 questions
4
votes
2 answers

Cassandra executable not recognized in Windows

I'm trying to download and install Cassandra on Windows 10 by downloading and extracting the tar file. I have made sure to initialize new environment variables CASSANDRA_HOME and I have also updated the PATH variable to include the bin subdirectory…
Jason
  • 2,495
  • 4
  • 26
  • 37
3
votes
1 answer

Cassandra paging on a primary key list does not work

I have a problem with the pagination in cassandra with python connector. I would like to paginate on a list of primary keys. Here is the schema of the table: client_data.store ( id text PRIMARY KEY, "additionalCols" text, format text, …
3
votes
1 answer

Cassandra 4.0 using java driver for multiple select

Trying to to send multiple select in a single batch fails with error message: Invalid statement in batch: only UPDATE, INSERT and DELETE statements are allowed. What is the best way to send multiple distinct queries (e.g id=x, id=y, id=z).
Doron Levi
  • 458
  • 4
  • 16
2
votes
1 answer

Cassandra Python executing multiple statement from string using python drive?

I want to execute multiple cql statements (2 or much more) using python driver. I try such simple code but it lead to error if query contains more then one statement. I do not want to split statements or format it (to single statements). I just want…
2
votes
4 answers

cassandra-4.0-beta4 Exception encountered during startup Requested permits (0) must be positive

OS:Ubuntu20.04 JDK:JDK11 Cassandra version: apache-cassandra-4.0-beta4 Error message: ERROR [main] 2021-03-25 14:16:15,561 CassandraDaemon.java:822 - Exception encountered during startup org.apache.cassandra.exceptions.TruncateException: Error…
Jia Bochao
  • 31
  • 2
2
votes
1 answer

Date Arithmetic: Cassandra 4

The data I am loading into Cassandra contains dates(timestamp type). I need to do calculations with these dates to calculate, for example the difference between a given date and now() or between two date(timestamp type) columns. I tried: SELECT x,…
jlb333333
  • 371
  • 2
  • 13
1
vote
2 answers

Setting memtable properties returns ConfigurationException, "Invalid yaml" due to ParserException

How can I update memtable size in Cassandra 4.1.2? In cassandra.yaml I update value for key memtable_heap_space: 5000 and memtable_offheap_space: 5000 and restart cassandra service. I got Exception while restart. Exception Image .
VISHNU
  • 13
  • 3
1
vote
2 answers

Is it possible to import a Cassandra 1.2 snapshot into a Cassandra 4.x cluster?

My current cassandra cluster setup has 3 nodes of version 1.2.x. I want to upgrade it to latest version currently available as 4.x with more number of nodes Currently vnodes is not configured in existing setup How can i do so? Can I simply take…
Zen
  • 31
  • 3
1
vote
1 answer

What would cause ReadStage exceptions in JVMStabilityInspector?

Just upgraded from cassandra 3.11.13 to cassandra 4.1.1 and I can see errors in the log like: ERROR [ReadStage-1] 2023-05-18 09:00:13,032 JVMStabilityInspector.java:68 - Exception in thread…
Catalin M
  • 31
  • 5
1
vote
1 answer

Schema disagreements with Cassandra 4.0 using the Java driver

we have a 3-node dev Cassandra cluster running 3.11.13 that we have upgraded to 4.0.7, and we’ve been basically sending DDL statements through our Java applications using spring-data-cassandra:3.4.6 which uses the DataStax Java Driver version…
1
vote
2 answers

Cannot able to run cqlsh due to python attribute error

Cannot able to execute the command cqlsh in mac m1 based system. % bin/cqlsh Traceback (most recent call last): File "/Users/avinashkasukurthi/devtools/apache-cassandra-4.0.7/bin/cqlsh.py", line 159, in from cqlshlib import…
1
vote
2 answers

Which node will respond to "SELECT * FROM system.local" using the Cassandra Java driver?

I am trying to write some synchronization code for a java app that runs on each of the cassandra servers in our cluster (so each server has 1 cassandra instance + our app). For this I wanted to make a method that will return the 'local' cassandra…
Wimpje
  • 165
  • 6
1
vote
1 answer

Intermittent issues connecting with cqlsh to nodes running on Kubernetes

I'm having some issues with my authentication when trying to login with cqlsh. I'm running a cluster of 3 nodes that is spaced out on three different physical nodes in Kubernetes. It has been rolling like a charm for the last month but around a week…
andypandy
  • 13
  • 2
1
vote
1 answer

Does Cassandra startup times depend upon the number of commit log files?

I have restarted my Cassandra without draining the node, now when Cassandra started it. It took more than 20-25 min to start accepting client connection. As Cassandra was reading the commit log files. So, does Cassandra startup time depend upon…
Aman Jain
  • 2,975
  • 1
  • 20
  • 35
1
vote
0 answers

Unable to connect to cassandra 4.0 after upgrading the spring-boot to latest 2.6.6 version

I am trying to upgrade Spring Boot to 2.6.6 which is using spring core-5.3.18 & spring-beans is 5.3.18. But I am facing some issues with Cassandra connection: codebase is not able to establish the connection with Cassandra. The Cassandra version…
1
2 3 4