Questions tagged [embedded-cassandra]
20 questions
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
5
votes
0 answers
How to stop and tear down embedded Cassandra in JUnit Tests
i am using Cassandra in several JUnit Tests Classes.
The Problem:
I do not know how to tear down/drop the cassandra correct after finishing a Test.
I do not want to reuse the same instance of the Cassandra in other Tests or Testclasses, this is…

Tomi
- 91
- 6
3
votes
1 answer
How to cleanup embedded cassandra after unittest?
I'm using Hectors EmbeddedServerHelper to set up embedded Cassandra. It has teardown() and cleanup() methods.
The problem is that cleanup method cannot delete some commit log files created by cassandra. Probably because there are still some…

Dima
- 1,774
- 5
- 21
- 31
3
votes
1 answer
JanusGraph 0.5.2 embedded cassandra java.lang.NoSuchMethodError: com.codahale.metrics.Snapshot
We are setting up JanusGraph 0.5.2 with embedded cassandra mode.
When we start Janus in this mode, it throws below exception in its logs:
org.apache.cassandra.service.CassandraDaemon - Exception in thread…

NumeroUno
- 1,100
- 2
- 14
- 34
3
votes
1 answer
Change log level for phantom embedded Cassandra
In my Scala project I'am using the phantom-sbt plugin in order to start embedded Cassandra. The problem is, this plugin is pretty verbose - all cassandra logs will be written to stdout.
I've seen on phantom github page, they are using log4j to…

codejitsu
- 3,162
- 2
- 24
- 38
2
votes
2 answers
I want to set the Cassandra timezone to UTC + 9 or KST
I am using embedded Cassandra 3.11.7 with springboot.
I live in South Korea which uses KST time which is UTC + 9.
So I'm looking for a way to set Cassandra timezone to kst or UTC+9.
When inserting the actual Cassandra, it is stored as utc that is -9…

orreo
- 31
- 3
2
votes
2 answers
Embedded cassandra not working after jdk10 upgrade
Embedded cassandra not working after jdk10 upgrade. Could some one help me on this.
Cassandra config:
try {
EmbeddedCassandraServerHelper.startEmbeddedCassandra();
}catch (Exception e) {
LOGGER.error(" CommonConfig…

Parthiban
- 527
- 2
- 13
- 24
2
votes
0 answers
Forming a cluster of embedded Cassandra instances
TL;DR: I have a very superficial understanding of Cassandra and am currently evaluating it for a project.
Can Cassandra be embedded into another JVM application?
Can such embedded instances form a cluster?
Can the application use the the failure…

Binil Thomas
- 13,699
- 10
- 57
- 70
1
vote
2 answers
Quarkus unable to load the cassandra custom retry policy class
I am working on a task to migrate Quarkus from 1.x to 2.x and Quarkus integration with embedded Cassandra failed in unit testing with error -
Caused by: java.lang.IllegalArgumentException: Can't find class…

CoreThought
- 113
- 6
- 16
1
vote
0 answers
Cassandra unit spring - Launch an embedded Cassandra only once per test class
I am setting up integration tests for my spring-boot application using cassandra-unit-spring maven dependency. I am able to run my tests which invoke the spring-boot application which in turn accesses an in-memory embedded Cassandra database.
Below…

Amit Singh
- 31
- 1
- 7
1
vote
1 answer
An exception or error caused a run to abort: Unable to start EmbeddedCassandra[name='cassandra-2', version='3.11.6']
I am using embedded-cassandra in my unit tests (Scalatest). When I try to run all the test cases as batch, I get error
An exception or error caused a run to abort: Unable to start EmbeddedCassandra[name='cassandra-2', version='3.11.6']
...
Caused…

Manu Chadha
- 15,555
- 19
- 91
- 184
1
vote
1 answer
Does Embedded Cassandra supports jdk10?
Could anyone please confirm whether Embedded cassandra supports jdk10 ? My spring boot application test cases were working fine in jdk8, but now it is not working. If anyone using Embedded Cassandra using jdk10, could you please share a sample code.

Parthiban
- 527
- 2
- 13
- 24
1
vote
4 answers
Starting an embedded Cassandra instance for Unit tests
I need to start a Embedded cassandra instance to perform some operations on a Cassandra keyspace via Unit tests. Programming Language is Java. What are the options to start an embedded cassandra?
I used the mojo maven plugin, however after starting…

Jyothi
- 71
- 1
- 3
1
vote
2 answers
Spring-Cassandra Unit with Embedded Cassandra Dependency Injection Issue
I am having issue with Spring unit testing with Embedded Cassandra. The issue is both Embedded Cassandra and My Cassandra Server are starting at the same time. How to make sure that during unit testing only Embedded Cassandra Starts.
I am using…

Harvinder Singh
- 203
- 4
- 11
1
vote
1 answer
Embedded Cassandra: how to apply a script?
I want to write tests against the data access layer powered by Cassandra.
So I use Embedded Cassandra with Astyanax and cassandra-unit, but I can't find the way to load a script which contains something like this into the embedded instance:
create…

d3rzKy
- 142
- 2
- 9