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
Questions tagged [spring-data-cassandra]
606 questions
                    
                    55
                    
            votes
                
                8 answers
            
        How to shut down a Spring Boot command-line application
I am building a Command Line java application using Spring Boot to get it working quickly.
The application loads different types of files (for example CSV) and loads them into a Cassandra Database. It does NOT use any web components, it is not a web…
         
    
    
        ESala
        
- 6,878
- 4
- 34
- 55
                    21
                    
            votes
                
                5 answers
            
        spring boot data cassandra reactive JmxReporter problem
I updated my project to spring-boot Version 2.1.0.RELEASE.
Now i get the following error:
Caused by: org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.data.cassandra.ReactiveSession]: Factory method…
         
    
    
        locohost
        
- 308
- 1
- 2
- 8
                    14
                    
            votes
                
                7 answers
            
        Spring data with cassandra giving IllegalStateException
I'm completly new to cassandra, so my error might be obvious. 
I'm trying to create an application  with spring boot (version 2.3.0.M2) that contacts a cassandra (version 3.11.6) installed in localhost. 
I've got an java.lang.IllegalStateException…
         
    
    
        Elena
        
- 501
- 1
- 6
- 15
                    13
                    
            votes
                
                6 answers
            
        Create keyspace, table and generate tables dynamically using Spring Data Cassandra
Using Cassandra, I want to create keyspace and tables dynamically using Spring Boot application. I am using Java based configuration. 
I have an entity annotated with @Table whose schema I want to be created before application starts up since it has…
         
    
    
        Anu
        
- 525
- 1
- 6
- 18
                    11
                    
            votes
                
                3 answers
            
        IN clause with Spring Data and Cassandra @Query
I'm trying to query a Cassandra table using the IN clause and the @Query annotation from Spring Data.  I have a table with a partition key of last_name and a clustering key of first_name.
I have this query working
@Query("SELECT * FROM people WHERE…
         
    
    
        Bill H
        
- 470
- 1
- 6
- 12
                    10
                    
            votes
                
                6 answers
            
        Multiple keyspace support for spring-data-cassandra repositories?
Does Spring Data Cassandra support multiple keyspace repositories in the same application context? I am setting up the cassandra spring data configuration using the following JavaConfig class
@Configuration
@EnableCassandraRepositories(basePackages…
         
    
    
        Saket
        
- 3,079
- 3
- 29
- 48
                    10
                    
            votes
                
                5 answers
            
        How create table with spring data cassandara?
I have created my own repository like that:
public interface MyRepository extends TypedIdCassandraRepository {
}
So the question how automatically create cassandra table for that? Currently Spring injects MyRepository which tries… 
         
    
    
        Cherry
        
- 31,309
- 66
- 224
- 364
                    9
                    
            votes
                
                7 answers
            
        Spring Cassandra time out query 'SELECT * FROM system_schema.tables' timed out after PT2S
I am using Spring Boot 2.4.4 and Spring Data Cassandra dependency to connect to the Cassandra database. During the application startup, I am getting a DriverTimeout error (I am using VPN).
I have gone through all the Stack Overflow questions similar…
         
    
    
        Rajeev
        
- 1,730
- 3
- 20
- 33
                    9
                    
            votes
                
                1 answer
            
        Cassandra + SpringBoot, java.lang.ClassNotFoundException: com.datastax.oss.protocol.internal.SegmentCodec
I'm trying to create a Spring application using Cassandra DB. But getting following error when I try to run the application.
Caused by: java.lang.NoClassDefFoundError: com/datastax/oss/protocol/internal/SegmentCodec
    ... 103 common frames…
         
    
    
        gulgulu
        
- 105
- 1
- 5
                    9
                    
            votes
                
                4 answers
            
        java.lang.IllegalArgumentException:Either use @Param on all parameters except Pageable and Sort typed once, or none at all
I'm using Spring Data Cassandra.I'm getting exception when i pass multiple parameters to the repository method.
   Can anyone help how to pass multiple parameters to append and use where clause.
My Repo method:
@Query("select site_name,month_gen…
         
    
    
        sreedhar
        
- 296
- 1
- 5
- 15
                    8
                    
            votes
                
                1 answer
            
        Is there a way to convert NULL to some value in Spring converter?
The database (Cassandra) does not allow specifying a default value when adding new columns. New columns are therefore null for every row.
Now, we added a flag to our entity (which might get more entries in the future):
enum UsageFlag {
    OTHER,
  …
         
    
    
        nikeee
        
- 10,248
- 7
- 40
- 66
                    8
                    
            votes
                
                4 answers
            
        Spring Boot Data Embedded Cassandra
In my Spring Boot 1.5.1 application I'm going to write unit/integration tests for Cassandra related logic.
I have added folowing Maven dependency:
    org.springframework.boot 
   … 
         
    
    
        alexanoid
        
- 24,051
- 54
- 210
- 410
                    8
                    
            votes
                
                1 answer
            
        Spring data cassandra - Error creating bean with name 'cassandraSession': Invocation of init method failed
I am trying to used Spring Data Cassandra
I am getting the following error as shown in the stack trace, while using Spring Data Cassandra. \
Could you help with this error
My pom.xml is like so..
        
            
            
                
                    
    
    
         
    
    
                
            
        
     
 
    
    
        user2346266
        
- 167
- 1
- 1
- 4
                    8
                    
            votes
                
                5 answers
            
        How to initialize Cassandra keyspace and tables with Spring boot
I am using Cassandra as a datasource in my Spring boot application and would like to initialize the database before the application starts.
Up to now what I have done is, I have defined a class "CassandraConfiguration" extending…
         
    
    
        frkn
        
- 83
- 1
- 1
- 5
                    8
                    
            votes
                
                2 answers
            
        Spark with Cassandra input/output
Picture the following senario: A Spark application (Java implementation) is using Cassandra database to load, convert to RDD and process the data. Also the application is steaming new data from the database which are also processed by a custom…
         
    
    
        Pantelis Papapoulias
        
- 495
- 3
- 15