Comments on: Running Cassandra as an embedded service http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/ by Ran Tavory Mon, 01 Aug 2011 08:29:01 +0000 hourly 1 http://wordpress.org/?v=3.2 By: mck http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-4252 mck Fri, 12 Nov 2010 12:57:35 +0000 http://prettyprint.me/?p=255#comment-4252 0.7.0 has some differences i've found. Instead of System.setProperty("storage-config", "../../test/conf"); you'll need (because of the change to yaml) System.setProperty("cassandra.config", "../../test/conf/cassandra.yaml"); Also if the property value is an absolute filepath it needs to be in URL format, see DatabaseDescriptor.getStorageConfigURL() 0.7.0 has some differences i’ve found.

Instead of
System.setProperty(“storage-config”, “../../test/conf”);
you’ll need (because of the change to yaml)
System.setProperty(“cassandra.config”, “../../test/conf/cassandra.yaml”);

Also if the property value is an absolute filepath it needs to be in URL format, see DatabaseDescriptor.getStorageConfigURL()

]]>
By: Ran Tavory http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-3323 Ran Tavory Fri, 10 Sep 2010 11:54:52 +0000 http://prettyprint.me/?p=255#comment-3323 @Kannan if memtables aren't flushed then cassandra will read the commit log when it starts up next time so data isn't lost. Per your code, I'm now too far away from the latest on trunk so it's best to advice with dev@cassandra @Kannan if memtables aren’t flushed then cassandra will read the commit log when it starts up next time so data isn’t lost.
Per your code, I’m now too far away from the latest on trunk so it’s best to advice with dev@cassandra

]]>
By: Kannan http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-3318 Kannan Fri, 10 Sep 2010 03:39:49 +0000 http://prettyprint.me/?p=255#comment-3318 Thanks for the reply. I notice that if I kill the jvm and the memtable is not full yet, its not flushing the in-memory data to disk. Any ideas how to get around this ? Currently I am using something like this: for(String t: DatabaseDescriptor.getTables()) { Table table = Table.open(t); for(ColumnFamilyStore cfs: table.getColumnFamilyStores()) { cfs.forceBlockingFlush(); } } Do you see any problems with this? Is there a better way to do it ? Thanks again Thanks for the reply. I notice that if I kill the jvm and the memtable is not full yet, its not flushing the in-memory data to disk. Any ideas how to get around this ? Currently I am using something like this:

for(String t: DatabaseDescriptor.getTables()) {
Table table = Table.open(t);
for(ColumnFamilyStore cfs: table.getColumnFamilyStores()) {
cfs.forceBlockingFlush();
}
}

Do you see any problems with this? Is there a better way to do it ?

Thanks again

]]>
By: Ran Tavory http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-3308 Ran Tavory Thu, 09 Sep 2010 11:51:58 +0000 http://prettyprint.me/?p=255#comment-3308 you mean why it cannot be killed? it's been discussed at user@cassandra a few times. Basically it's a design decision and was never considered important enough to rethink it you mean why it cannot be killed? it’s been discussed at user@cassandra a few times. Basically it’s a design decision and was never considered important enough to rethink it

]]>
By: Kannan http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-3298 Kannan Wed, 08 Sep 2010 23:52:33 +0000 http://prettyprint.me/?p=255#comment-3298 Thanks for putting up this embedded server, very helpful Any ideas why this is a cassandra design limitation ? Thanks for putting up this embedded server, very helpful
Any ideas why this is a cassandra design limitation ?

]]>
By: Ran Tavory http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-2849 Ran Tavory Mon, 02 Aug 2010 18:57:51 +0000 http://prettyprint.me/?p=255#comment-2849 no, that's a design limitation in cassandra no, that’s a design limitation in cassandra

]]>
By: Michael Zehrer http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-2845 Michael Zehrer Mon, 02 Aug 2010 15:48:15 +0000 http://prettyprint.me/?p=255#comment-2845 Is there a solution for the shutdown problem? One that does not require me to kill the JVM? Is there a solution for the shutdown problem? One that does not require me to kill the JVM?

]]>
By: Confluence: Team Message Archiver http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-2810 Confluence: Team Message Archiver Fri, 30 Jul 2010 17:38:40 +0000 http://prettyprint.me/?p=255#comment-2810 <strong>Cassandra Research Links...</strong> Cassandra Research Google indexing/searching... Cassandra Research Links…

Cassandra Research Google indexing/searching…

]]>
By: Understanding Cassandra Code Base | PrettyPrint.me http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-797 Understanding Cassandra Code Base | PrettyPrint.me Sun, 02 May 2010 14:20:14 +0000 http://prettyprint.me/?p=255#comment-797 [...] have a closer look at the internal design of the system. While with some features added, such as an embedded service, I could have certainly get away without good understanding of the codebase and design, others, [...] [...] have a closer look at the internal design of the system. While with some features added, such as an embedded service, I could have certainly get away without good understanding of the codebase and design, others, [...]

]]>
By: links for 2010-04-26 « Daniel Harrison's Personal Blog http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/comment-page-1/#comment-732 links for 2010-04-26 « Daniel Harrison's Personal Blog Tue, 27 Apr 2010 02:02:22 +0000 http://prettyprint.me/?p=255#comment-732 [...] Running Cassandra as an embedded service | PrettyPrint.me (tags: cassandra java) [...] [...] Running Cassandra as an embedded service | PrettyPrint.me (tags: cassandra java) [...]

]]>