1,029 questions
0
votes
1
answer
40
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
50
views
Cassandra timeout after PT2S
I have the following:
CompletableFuture<> cf = CompletableFuture.allOf(cqlSession.executeAsync(statement)
.thenApply(AsyncResultSet::wasApplied)
.toCompletableFuture());
cf....
0
votes
1
answer
100
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 ...
2
votes
0
answers
42
views
Spring Data CassandraDriverTimeoutException
I'm getting sporadic timeout exceptions from the Cassandra driver in a Spring Boot project, in spite of having what I think are the appropriate yml configuration properties.
spring:
cassandra:
...
0
votes
1
answer
159
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
83
views
From time to time, Cassandra Java driver writes return "NoNodeAvailableException: No node was available to execute the query"
I am running a Scala application that uses the datastax java driver library to write data rows into multiple AWS Keyspaces tables. However, for one table specifically, INSERT or UPDATE operations fail ...
0
votes
1
answer
184
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 ...
0
votes
0
answers
52
views
DataStax Cassandra Java Driver 4.14.x withSSLContext JDK root cert
Currently, I'm connecting my spring boot application to CassandraDB via SSL using the truststore file and password that are hardcoded in application.properties file. Due to security issue, I'm trying ...
2
votes
2
answers
134
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
104
views
How to add TTL variable using QueryBuilder in Cassandra Java driver 4.17.0
I want to generate query like "INSERT INTO table1 (id, data) VALUES (:id, :data) USING TTL :ttl"
with Datastax Cassandra driver QueryBuilder.insertInto().
Other related questions are so old ...
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 ...
3
votes
2
answers
850
views
Connecting from IntelliJ IDE returns "Since you provided explicit contact points, the local DC must be explicitly set"
I was facing local DC issue connecting to cassandra from intellij IDE. It says that the local DC must be explicitly set. I am providing the below details
hosts : cassandra.prod-az-southcentralus-301....
0
votes
1
answer
221
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 ...
0
votes
1
answer
52
views
Cassandra datastax 3.11.5 compatability
I have used datastax driver 3.11.5 version to connect to cassadra instance in version 4.x .Is this compatable ?
Also when I am using EmbeddedCassandraServiceHelper from cassandra-unit version 4.3.1.0 ...
1
vote
2
answers
241
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 ...
-1
votes
1
answer
72
views
Connect multiple cassandra DB in spring boot application
Am trying to connect to multiple cassandra DB in springboot application,But when i ran cassandra query from repository class to get data from CassandraConfig2 am getting below error unconfigured table ...
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 ...
0
votes
2
answers
593
views
Spring Boot Cassandra Connectivity Issue: Can't Connect to DataStax Astra DB
I'm working on a Spring Boot application that integrates with DataStax Astra DB using the Astra secure bundle. However, I’m encountering persistent issues when trying to establish a connection to the ...
1
vote
1
answer
881
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 ...
0
votes
1
answer
113
views
How to increase fetch size to reduce number of network calls while scanning a Cassandra table?
I am using datastax java driver version 4.15. I have read the paging documentation.
My application.conf looks like below
datastax-java-driver {
basic.contact-points = [ "<IP>:<...
-1
votes
1
answer
78
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) ...
1
vote
0
answers
131
views
Issue with Cassandra Java Driver Handling of Node Endpoints
I'm working on a monitoring application that periodically verifies the execution status of Cassandra nodes. The application dynamically creates Cassandra connections by reading multiple configurations ...
0
votes
0
answers
181
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: ...
0
votes
2
answers
81
views
Cassandra DriverTimeoutException when using pagination
I have an application that reads from 4 Cassandra tables, 4 tables are in different clusters, and I make 4 sessions through the datastax java driver
<dependency>
<groupId&...
1
vote
1
answer
91
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:
...
1
vote
1
answer
64
views
Ignoring codec because it collides with previously generated codec
i am trying to register custom code(for map) like below
val session: CqlSession = CassandraConnector.apply(spark.sparkContext).openSession()
val codecRegistry: MutableCodecRegistry = session....
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 ...
0
votes
1
answer
41
views
Cassandra driver 2.1.10.2 returns NoHostAvailableException when Hbase client is upgraded to 2.5.8
Cassandra is giving NoHostAvailableException when Hbase client is upgraded to 2.5.8 version and cassandra driver version used is 2.1.10.2
Caused by: com.google.common.util.concurrent....
1
vote
1
answer
471
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 &...
2
votes
2
answers
1k
views
Cassandra java-driver Java 17 Compatibility
DataStax Java Driver 4.17 added Beta support for Java 17 per the Upgrade Guide docs.
This Apache Thread from November 2023 makes it look like Java Driver is now part of the Apache Software Foundation.
...
0
votes
1
answer
377
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
0
answers
62
views
ClassCastException with PreparedStatemennt upgrading to datastax driver 4.17.0 with java 17 and spring 6 and jetty 12
Facing the above issue after upgrading application to Java 17 with Spring 6.0.8 and DataStax Java Driver 4.17.0 versions against Apache Cassandra® 5.0-beta1 server.
Caused by:
java.lang....
0
votes
1
answer
51
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
1
answer
225
views
UserType class missing from Cassandra 4.x driver
I'm using in my java 11 project and migrating the code related to cassandra database from 3.60 to 4.13.0.
<cassandra.driver.oss.version>4.13.0</cassandra.driver.oss.version>
&...
0
votes
3
answers
278
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
1
answer
179
views
Cassandra datastax ipv6 connection
When I try to connect to the Cassandra instance on a machine with an ipv6 address, I get this error.
Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for ...
0
votes
0
answers
253
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 ...
0
votes
1
answer
103
views
Adding even 50 ms delay between datacenters in Cassandra cluster leads to NoNodeAvailableException even for LOCAL_SERIAL
I try to do the test for understanding how C* takes network issues with fix delay on every packet. Java application with Datastax Java driver very simple multidc C* cluster and tc tool.
There DCA and ...
1
vote
2
answers
134
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
0
answers
113
views
How to set read timeout (read-timeout-millis 3.11V ) in latest datastax 4.x version in Cassandra
In Cassandra 3.11v, we set read-timeout-millis properties like below.
spring:
data:
cassandra:
read-timeout-millis: 2000ms
But how can we set read-timeout properties in the latest ...
0
votes
1
answer
125
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 ...
2
votes
1
answer
76
views
How to get backpressure for Cassandra Writes in multi-apps scenario?
I have multiples applications that do writes to Cassandra.
Each unit app has backpressure mecanism configured, like throughputMBPerSec=10
Problems arise when multiples applications are running at the ...
0
votes
2
answers
587
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
1
answer
568
views
Connect to Cassandra with dynamic, rotating credentials from Spring vault
Im working on a project that uses Spring Data Cassandra (for simplicity, “SDC” from now on) and we have been working on the integration with Spring Vault so we can generate dynamic credentials and ...
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
688
views
Datastax DevCenter Application launching with an error "An error occured , see the log file null"
I am using DevCenter of Datastax to connect CassandraDB for few months.
Today suddenly it started throwing an error "An error occured , see the log file null" while launching the tool/app, ...
0
votes
1
answer
395
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....
0
votes
0
answers
96
views
NoHostAvailableException : Application services not starting
We have a cluster running with 36 nodes on the 4.0.1 version & Driver version is 3.10.2. The application team tried to launch the new application on this database but it was failing with the below ...
1
vote
1
answer
271
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 ...
0
votes
1
answer
257
views
Connecting spring boot app to datastax/dse-server container, getting "cassandra-service did not send an authentication challenge"
I'm trying to connect my java spring boot application to the datastax/dse-server container with docker-compose, but I got this error: Invalid keyspace. And my cassandra service returns : cassandra-...