Hi I want to embed Apache Cassandra in my Java program, how can I start it programmatically?
http://prettyprint.me/prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/index.html has written a nice blog post on how to embedd cassandra for unittests
We do this in our test utils module now (which also has no dependency on hector-core)
https://github.com/rantav/hector/tree/master/test/src/main/java/me/prettyprint/hector/testutils
As mentioned in the comments, there is no clean shutdown state. It is safe to just kill.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With