Questions tagged [spring-data-cassandra]
Spring Data for Cassandra is part of Spring Data project which provides a familiar and consistent Spring-based programming model for new datastores while retaining store-specific features and capabilities. The Spring Data Cassandra project provides integration with Cassandra Columnar NoSQL Datastore
spring-data-cassandra
619
questions
0
votes
0
answers
14
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:
...
0
votes
0
answers
41
views
NoSuchBeanDefinitionException: No bean named 'cassandraTemplate' available
I've upgraded Spring Boot from version 1.4.x to 1.5.x. This migration also requires updating other dependencies used in the project, such as migrating Spring Data Commons to version 1.13.x and Spring ...
0
votes
2
answers
29
views
Spring in Action, Sixth Edition page 96, docker commands errors
To the point I'm at I have run the following commands in my vs code terminal
docker network create cassandra-net
docker run --name my-cassandra --network cassandra-net -p 9042:9042 -d cassandra:latest
...
1
vote
1
answer
57
views
Spring Data Cassandra adhere Batch Limit
Using CassandraTemplate in spring I get a batchOps and then insert values in a batch
CassandraBatchOperations batchOps = cassandraTemplate.batchOps();
batchOps.insert(listOfEntities);
batchOps.execute(...
0
votes
1
answer
121
views
Spring data cassandra - com.datastax.oss.driver.api.core.auth.AuthenticationException
I have a spring boot app trying to connect to scyllaDB, and the dependencies used are,
1)"org.springframework.boot:spring-boot-starter-data-cassandra:2.7.9",
2) "org....
0
votes
0
answers
57
views
org.springframework.core.convert.ConverterNotFoundException: No converter found capable of converting from type Instant to type org.joda.time.DateTime
I started getting the exception after I upgraded to spring-data-commons-3.2.1 and spring-data-cassandra-4.2.1.
I added the custom conversions
@Bean
CassandraCustomConversions ...
1
vote
1
answer
107
views
Cassandra slow reads (by partition key) for large data rows fetched
I have a 5 node cassandra (3.11) cluster on AWS.
Machine specs
Model vCPU Memory (GiB) Instance Storage (GB) Networking Bandwidth (Gbps)
i3.large 2 15.25 1 x 475 NVMe SSD Up to 10
...
1
vote
0
answers
86
views
Spring Boot Cassandra Repository With Composite Primary Key & Not Using Seperate Key Class
I am using Spring boot cassandra entity classes and repositories, many of my entities/tables have composite primary keys or multiple columns that create the primary key and when extending Spring Data ...
0
votes
0
answers
19
views
An issue with mapping an @Embeded object with cassandra spring data
I am using Spring Boot v3.2.2 with data Cassandra.
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-cassandra</...
0
votes
1
answer
292
views
How to manage two Cassandra sessions using spring data cassandra with spring boot 2.7.x
In My Application, Using the below technologies
Spring boot 2.7.x
spring-boot-starter-data-cassandra 2.7.x
spring batch 5. x
java 11
Configuration
@EnableCassandraRepositories(
basePackages = {&...
0
votes
0
answers
23
views
Cassandra - No Viable alternatve at input 'COPY' ([COPY]...) [duplicate]
I am trying to programatically COPY a csv file data to a table in Cassandra, using the below mentioned dependency in spring boot.
<dependency>
<groupId>com.datastax.oss</groupId>
...
0
votes
0
answers
185
views
Cassandra Connection Error [com.datastax.oss.driver.api.core.AllNodesFailedException:]
I am trying to create multiple sessions in spring application with datastax java driver (4.3.1). My cassandra version is 3.11.2. I will use ipv6 because of that, i upgraded my spring-data-cassadnra ...
0
votes
1
answer
35
views
retreiving set from cassandra in spark scala gives type mismatch java.utils
I have a table in cassandra which is a set type and have case class created in scala as:
case class test(
var status: Option[Set[String]]
)
now I am trying to retreive the data from cassandra ...
1
vote
0
answers
37
views
Is there a way to prevent Spring Data from trying to connect to Cassandra if a certain profile is provided?
I have the following...
@RestController
@RequestMapping("/cassandra")
@AllArgsConstructor
@Profile("cassandra")
public class CassandraController {
private final MessageRepo ...
0
votes
1
answer
54
views
Is spring data cassandra thread safe?
That's the question, is spring data cassandra thread safe? I mean for instance, are the operations exposed by org.springframework.data.cassandra.repository.CassandraRepository interface thread safe? ...