1,029 questions
0
votes
1
answer
39
views
Maven Resolving Incorrect Dependency for Cassandra Drivers
I have my POM file declared like this:
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3....
0
votes
1
answer
97
views
Cassandra Java driver: high latency when executing many async reads in a loop
We're using DSE 6.0.18 (Cassandra version 3.11) and our application is both read and write heavy.
I have a situation where I need to fire N number of read queries for each API (by partition key) using ...
0
votes
1
answer
155
views
Application getting "InvalidQueryException: Request is too big: length 18116963 exceeds maximum allowed length 16777216."
I've a cassandra cluster running on v4.1.8 and the settings are set as default, even the heap configuration.
Recently the application is experiencing errors like the below -
java.util.concurrent....
0
votes
1
answer
174
views
Java driver keeps reconnecting to old Cassandra pod IPs but pods have new IPs after restart
I have deployed a Java application as a pod in a Kubernetes environment, as well as Cassandra with a 3-node cluster. I am using Cassandra service FQDN to connect to Cassandra. Due to the Cassandra pod ...
2
votes
2
answers
132
views
Delete doesn't work immediately on single node Cassandra database
My problem is that I am not getting immediate delete on single node Cassandra.
The problem occurs only on Windows, when I run Cassandra in Docker container. There is no problem on Linux. I am using ...
0
votes
1
answer
48
views
Single node cluster ignores LWT update when using single thread Java client on Windows
I have the following setup:
cassandra 4.1.7 running in docker on Ubuntu host, single node
java client with datastax driver 3.11.5, jdk 11.0.25
The code:
public class Main {
public static void ...
0
votes
1
answer
210
views
How do I upgrade Cassandra Java driver 3.11.3 to 4.0.0 for Spring?
I am supposed to upgrade my Cassandra version to 4.0.0 but whenever I am doing so I am getting the many issues like these:
error: error: cannot access TypeCodec,
error: cannot find symbol
And it is ...
1
vote
2
answers
239
views
Unable to connect to the remote Cassandra datacenter with the options provided in error
I'm trying to connect to two of my remote contact points using the Cassandra CqlSession class. I'm using spring boot 3.3.3 and spring-data-cassandra 4.3.3. Below are the datastax driver dependencies ...
0
votes
0
answers
49
views
Mulesoft CassandraDB Module 4.1.2 and Connection Pooling Configuration?
All documentation I see does not mention connection pooling configuration. When I configure the connection in Anypoint studio there are not options. I saw the old mule module mentions pooling options ...
1
vote
1
answer
865
views
Is the Cassandra Java driver compatible with JDK 21?
Is the cassandra java driver 4.17 compatible with jdk 21? We are planning to migrate our servers to java 21 and we are using cassandra client. If this is not supported this is a no go for us.
There ...
-1
votes
1
answer
71
views
Batch statements return "Unconfigured table" error
I am seeing an unconfigured table error when I execute a batch statement(not consistent).
In the batch statement, I am having several prepare statements(10)
Few of the prepare statements(2 of them) ...
0
votes
0
answers
177
views
Unable to make private fields accessible - while migrating to springboot3.2.0, Java21
While trying to migrate my application from Java8,Springboot v1.x to Java21,Springboot v3.2.0, I encountered the following issue while trying to configure cassandra in my application:
> Caused by: ...
1
vote
1
answer
82
views
Create Statement in Spring Data Cassandra
How can I create a Statement using Spring Data Cassandra in a way that spring would handle type conversion as well?
If I have a simple query with simple types, I could write something like this:
...
2
votes
0
answers
96
views
register a custom codec in cassandra connector
I am using spark-cassandra-connector_2.11 and version 2.5.2 in my scala application and want to register a custom map codec, but facing issues.
Is there any way to register it. I did the same thing on ...
1
vote
1
answer
469
views
How to fix bytes unrepaired in cassandra
Could you please explain what i do wrong?
I'm running 7 nodes in one DC of Cassandra 4.0.5 As I'm trying to maintain those nodes I'm running on daily basis on every node:
nodetool repair --full -pr &...
0
votes
1
answer
375
views
Trino Cassandra connector is trying to connect to the contact points with the wrong ports
I'm using Cassandra connector and want to connect Trino to three nodes (contact points), all nodes use 19001 port, Trino successfully connect to the first one (using 19001 port), but not to the other ...
0
votes
1
answer
44
views
Can I ignore system peer warning when connecting to AWS Keyspaces?
I am testing connectivity to AWS Keyspaces via sigv4 driver and getting below warning message
[info] running SampleConnectionWithSigv4
316 [sbt-bg-threads-1] INFO com.datastax.oss.driver.internal....
0
votes
3
answers
269
views
CQLSession initialization error while executing triggers with Apache Cassandra 4.0.11
I am getting errors during CQLSession initialization while executing triggers. The contact-points are [ “127.0.0.1:9042” ] with SSL enabled.
Seems like its caused by:
java.lang....
0
votes
0
answers
251
views
Best Cassandra/Scylla configuration with single FE node
I'd like to have a simple Cassandra/Scylla cluster with two nodes, rf 2 so they both contain the same data. I want to expose one node to the internet (temporarily) behind NAT. The router has a dynamic ...
1
vote
2
answers
129
views
Cannot write to table with UDT, getting "Cannot resolve UserDefinedType for [devices]"
These are the dependencies I have installed in my spring project
//cassandra
implementation 'org.springframework.data:spring-data-cassandra:3.1.2'
implementation 'io.projectreactor:reactor-core'
...
0
votes
1
answer
117
views
Node specified with setNode() method forwards read request to other nodes
I am trying to read data present in a specific cassandra (4) node, using Datastax driver version 4.13. I have read this post, which supposedly works for driver versions 3.x
I have modified my code as ...
0
votes
2
answers
579
views
Spring app returns CassandraConnectionFailureException due to NoNodeAvailableException: No node was available to execute the query
We have added 1 more dc to existing cluster. Application was deployed in each region separately. After adding the DC & region wise application deployment, We started seeing the below exception ...
0
votes
2
answers
278
views
Is it possible to do an immediate speculative retry towards the REMOTE datacenter?
My cassandra cluster is hosted on two datacenters. Not only are they separated by some latency, at times either of them might become temporarily unavailable.
EACH_QUORUM is not an option as it is both ...
0
votes
1
answer
392
views
java.lang.NoClassDefFoundError: com/datastax/oss/driver/api/mapper/entity/naming/GetterStyle
I am building Cassandra datastax 4.14 with Spring Boot and gradle 7.6
Gradle file:
plugins {
id 'java'
id 'org.springframework.boot' version "2.3.5.RELEASE"
id 'io.spring....
1
vote
1
answer
269
views
How can I resolve CodecNotFoundException for date <-> java.util.Date when using Cassandra Java driver 3.11?
System.out.println("Enter date of birth (yyyy-MM-dd):");
String dateOfBirth = scanner.nextLine();
DateFormat dateFormat = new SimpleDateFormat("yyyy-MM-dd");
Date ...