Re: how to start a embed cassandra instance?

2016-07-14 Thread Stone Fang
Achilles is a good project.but it is heavy.actually i just need to 1.start/stop a embed standalone cassandra 2.start/stop a embed cassandra cluster. seems CassandraDaemon can just start a standalone,not cluster. On Wed, Jul 13, 2016 at 8:31 PM, DuyHai Doan wrote: > As

Re: how to start a embed cassandra instance?

2016-07-13 Thread DuyHai Doan
As for Achilles, no I start Cassandra in the same JVM. It is meant to be used for testing purpose only. I also faced dependency issue with different version of Guava so I excluded the Guava pulled by the Datastax Java driver to use the one pulled by C* itself:

Re: how to start a embed cassandra instance?

2016-07-13 Thread Ken Hancock
Do either cassandra-unit or Achilles fork Cassandra to a separate JVM? Guava libraries create a dependency hell with our current use of Hector's embedded server. We're starting to migrate to the Datastax Java driver with yet another guava version. I know Farsandra supports forking, so that was

Re: how to start a embed cassandra instance?

2016-07-12 Thread DuyHai Doan
If you're looking something similar to cassandra-unit with Apache 2 licence, there is a module in Achilles project that provides the same thing: https://github.com/doanduyhai/Achilles/wiki/CQL-embedded-cassandra-server On Tue, Jul 12, 2016 at 12:56 PM, Peddi, Praveen wrote: >

Re: how to start a embed cassandra instance?

2016-07-12 Thread Peddi, Praveen
We do something similar by starting CassandraDaemon class directly (you would need to provide a yaml file though). You can start and stop CassandraDaemon class from your unit test (typically @BeforeClass). Praveen On Jul 12, 2016, at 3:30 AM, Stone Fang