Re: Embedded cassandra

2016-01-27 Thread Jack Krupansky
And do share your conclusions with us, so others can benefit. -- Jack Krupansky On Wed, Jan 27, 2016 at 1:28 AM, Enrico Olivelli wrote: > Thank you all for your feedback. > I and my team will take all these suggestions into account. > > Cheers > Enrico > > Il giorno Mar 26 Gen 2016 23:51 Jack K

Re: Embedded cassandra

2016-01-26 Thread Enrico Olivelli
Thank you all for your feedback. I and my team will take all these suggestions into account. Cheers Enrico Il giorno Mar 26 Gen 2016 23:51 Jack Krupansky ha scritto: > There is no documented support for embedded Cassandra. Sure, there is a > CassandraDaemon class and a EmbeddedCassandraService

Re: Embedded cassandra

2016-01-26 Thread Jack Krupansky
There is no documented support for embedded Cassandra. Sure, there is a CassandraDaemon class and a EmbeddedCassandraService class, but they are intended for testing, not for use of the product. I have seen a couple of (old) references to people running embedded Cassandra (one in the official Wiki

Re: Embedded cassandra

2016-01-26 Thread Jonathan Haddad
Launching a distributed database inside of an application server does not make it easier to manage, it makes it a nightmare. Rebooting a node is easy, rebooting ALL your nodes when you do a deployment is pointless. On Tue, Jan 26, 2016 at 2:14 PM Enrico Olivelli wrote: > Hanks for your replies.

Re: Embedded cassandra

2016-01-26 Thread Enrico Olivelli
Hanks for your replies. Actually my service uses a traditional jdbc database which is to be shared among all the peers. I'm looking for a shared-nothing db and Cassandra seems good. I'm already using HBase in production but it seems to me that Cassandra is more dynamic. No need for distributed fs l

Re: Embedded cassandra

2016-01-26 Thread Jonathan Haddad
For the sake of argument... why do you think you should embed Cassandra? I'll be honest with you, making Cassandra restart every time you want to upgrade your daemon sounds like a horrible idea. Run your 10 DB instances on their own and save yourself the operational headache. On Tue, Jan 26, 2016

Re: Embedded cassandra

2016-01-26 Thread Richard L. Burton III
I'm certain you're going to get a lot of users on this mailing list telling you that's a bad idea. You should read up on Cassandra via datastax website to understand how Cassandra is designed and works. There's tools for monitoring and more. On Tue, Jan 26, 2016 at 2:31 PM, Enrico Olivelli wrote

Re: Embedded Cassandra Performance

2014-04-16 Thread Sávio Teles
Thanks Chris! 2014-04-16 12:53 GMT-03:00 Chris Lohfink : > There will be a small performance improvement from not having the > app->cluster latency. If ran on same system (which I wouldn’t recommend) > the latency would be pretty irrelevant anyway unless you are fighting for > sub millisecond l

Re: Embedded Cassandra Performance

2014-04-16 Thread Chris Lohfink
There will be a small performance improvement from not having the app->cluster latency. If ran on same system (which I wouldn’t recommend) the latency would be pretty irrelevant anyway unless you are fighting for sub millisecond latency (in which case get off the JVM). You would be able to acc

Re: Embedded Cassandra Performance

2014-04-16 Thread Sávio Teles
Is it advisable to run the embedded Cassandra in production? 2014-04-16 12:08 GMT-03:00 Sávio Teles : > I'm running a cluster with Cassandra and my app embedded. > > Regarding performance, it is better to run embedded Cassandra? > > What are the implications of running an embedded Cassandra ? >

Re: Embedded Cassandra server startup question

2011-01-21 Thread Anand Somani
It is a little slow not to the point where it concerns me (only have few tests for now), but keeps things very clean so no surprise effects. On Thu, Jan 20, 2011 at 6:33 PM, Roshan Dawrani wrote: > On Fri, Jan 21, 2011 at 5:14 AM, Anand Somani wrote: > >> Here is what worked for me, I use testN

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
Ok, got a Cassandra client from Hector and changed my clean-up to be truncate() based. Here is how I did it, if it could be any use to anyone: = HConnectionManager connectionManager = cassandraCluster.connectionManager Collection activePools = connectio

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
Back to square one on using CliMain/CliClient vs Cassandra/Hector API for cleanuup. It seems CliClient uses Antlr 3.1+ for parsing the statements passed to it, but I am using Grails that uses Antlr 2.7.7 (used by groovy code parsing), so I can't mix the two for programmatic use. Someone please te

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:56 AM, Roshan Dawrani wrote: > On Fri, Jan 21, 2011 at 8:52 AM, Maxim Potekhin wrote: > >> You can script the actions you need and pipe the file into Cassandra-CLI. >> Works for me. >> > > Probably CliMain / CliClient will help me there doing it as per your suggestion.

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:52 AM, Maxim Potekhin wrote: > You can script the actions you need and pipe the file into Cassandra-CLI. > Works for me. > Thanks Maxim, but first preference will be to do it through the API and not launch the Cassandra-CLI process with a scripted set of actions (I as

Re: Embedded Cassandra server startup question

2011-01-20 Thread Maxim Potekhin
You can script the actions you need and pipe the file into Cassandra-CLI. Works for me. On 1/20/2011 10:18 PM, Roshan Dawrani wrote: On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton > wrote: There is a truncate() function that will clear a CF. It may leave a

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton wrote: > There is a truncate() function that will clear a CF. It may leave a > snapshot around, cannot remember exactly. > Not sure if Hector (0.7.0-22) has added truncate() to its API yet. I can't find it. In Hector, I see a *dropColumnFamily()* tha

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 8:07 AM, Aaron Morton wrote: > There is a truncate() function that will clear a CF. It may leave a > snapshot around, cannot remember exactly. > > Or you could drop and recreate the keyspace between tests using > system_add_keyspace() and system_drop_keyspace(). The system

Re: Embedded Cassandra server startup question

2011-01-20 Thread Aaron Morton
There is a truncate() function that will clear a CF. It may leave a snapshot around, cannot remember exactly. Or you could drop and recreate the keyspace between tests using system_add_keyspace() and system_drop_keyspace(). The system tests in the test/system/__init__.py sort of do this. AaronOn 21

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 5:14 AM, Anand Somani wrote: > Here is what worked for me, I use testNg, and initialize and createschema > in the @BeforeClass for each test > >- In the @AfterClass, I had to drop schema, otherwise I was getting the >same exception. >- After this I started gett

Re: Embedded Cassandra server startup question

2011-01-20 Thread Roshan Dawrani
On Fri, Jan 21, 2011 at 3:02 AM, Aaron Morton wrote: > Do you have a full error stack? > > That error is raised when the schema is added to an internal static map. > There is a lot of static state so it's probably going to make your life > easier if you can avoid reusing the JVM. > > Hi Aaron, Ac

Re: Embedded Cassandra server startup question

2011-01-20 Thread Anand Somani
Here is what worked for me, I use testNg, and initialize and createschema in the @BeforeClass for each test - In the @AfterClass, I had to drop schema, otherwise I was getting the same exception. - After this I started getting port conflict with the second test, so I added my own versi

Re: Embedded Cassandra server startup question

2011-01-20 Thread Aaron Morton
Do you have a full error stack? That error is raised when the schema is added to an internal static map. There is a lot of static state so it's probably going to make your life easier if you can avoid reusing the JVM. Im guessing your errors comes from AbstractCassandraDaemon.setup() calling D

Re: Embedded Cassandra in JBoss

2010-09-15 Thread Gary Dusbabek
On Wed, Sep 15, 2010 at 09:17, Sandor Molnar wrote: > Hello guys! > > I just started researching today whether we can use Cassandra in our software > or not and I need to know if it is possible to use embedded Cassandra in > Jboss somehow. I googled it and I found several pages like > http://wik

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Ran Tavory
I have a writeup just for that from a while ago http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/ This addresses version 0.5.0, not 0.6 but I believe the diff isn't that big. And as mentioned, you may also browse hector to get the list of dependencies. Please also see http:

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Ryan Daum
Thanks Tom; I am working with 0.6 beta2 now, so not immediately applicable, but this is helpful. Maybe we ought to consider taking what you've done and putting it up in a generic way accessible on a public repo. R On Sun, Mar 14, 2010 at 2:16 PM, Tom Chen wrote: > Hi Ryan, > > I have been runn

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Jonas Bonér
Here is an util class from the Akka test suite, embedding Cassandra: import org.apache.cassandra.service.CassandraDaemon object EmbeddedCassandraService { System.setProperty("storage-config", "src/test/resources"); val cassandra = new Runnable { val cassandraDaemon = new CassandraDaemon

Re: Embedded Cassandra for Integration testing

2010-03-14 Thread Tom Chen
Hi Ryan, I have been running some tests locally, and I've been using. http://github.com/rantav/hector If you look at the pom.xml you can get a pretty good idea of the dependencies required to run a cassandra client for version 5. I usually combine it with the maven one jar to create one jar file