Re: cassandra.yaml not picked up?

2010-05-18 Thread Nathan McCall
I came across this the other day as well. The following FAQ will get you going: http://wiki.apache.org/cassandra/FAQ#no_keyspaces -Nate On Tue, May 18, 2010 at 9:24 AM, Frank Du wrote: > Hey All, > > I tried to run from cassandra trunk source. The keyspace schema has changed > to cassandra.yaml.

Re: paging row keys

2010-05-12 Thread Nathan McCall
Oh, thanks to Andrey Panov for providing that example, btw. We are always looking for good usage examples to post on the Hector wiki If anyone else has them. -Nate On Wed, May 12, 2010 at 5:01 PM, Nathan McCall wrote: > Here is a basic example using get_range_slices to retrieve 500 rows

Re: paging row keys

2010-05-12 Thread Nathan McCall
Here is a basic example using get_range_slices to retrieve 500 rows via hector: http://github.com/bosyak/hector/blob/master/src/main/java/me/prettyprint/cassandra/examples/ExampleReadAllKeys.java To page, use the last key you got back as the start key. -Nate On Wed, May 12, 2010 at 3:37 PM, Core

Re: Tuning Cassandra

2010-05-10 Thread Nathan McCall
David, Are you using batchMutate or insert? Jump on over to hector-users if you want API help with either of these. -Nate

Re: replacing columns via remove and insert

2010-05-06 Thread Nathan McCall
This was on hector-users this morning as well. It has been addressed and is now in trunk. -Nate On Thu, May 6, 2010 at 2:35 PM, Jonathan Ellis wrote: > That's kind of an odd API wart for Hector.  You should file an issue > on http://github.com/rantav/hector > > On Thu, May 6, 2010 at 11:36 AM, J

Re: cassandra jvm crash in GCTaskThread

2010-05-05 Thread Nathan McCall
Ran, You may want to upgrade your jvm. I had a similar core with a heavily loaded tomcat recently and found the following on the release notes page for 1.6.0_18: "Card-Marking Optimization Issue A flaw in the implementation of a card-marking performance optimization in the JVM can cause heap corru

Re: performance tuning - where does the slowness come from?

2010-05-04 Thread Nathan McCall
You could try mmap_index_only - this would restrict mmap usage to the index files. -Nate On Tue, May 4, 2010 at 11:57 AM, Ran Tavory wrote: > I canceled mmap and indeed memory usage is sane again. So far performance > hasn't been great, but I'll wait and see. > I'm also interested in a way to ca

Re: Problem with JVM? concurrent mode failure

2010-04-28 Thread Nathan McCall
-XX:CMSInitiatingOccupancyFraction=75 It's at 90 by default on most systems. Turning this down to the above would trigger the incremental collection to occur 75% full as opposed to %90. -Nate On Wed, Apr 28, 2010 at 7:44 AM, Jonathan Ellis wrote: > Yes, incremental mode is definitely contraind

Re: Cassandra reverting deletes?

2010-04-27 Thread Nathan McCall
Have you confirmed that your clocks are all synced in the cluster? This may be the result of an unintentional read-repair occurring if that were the case. -Nate On Tue, Apr 27, 2010 at 2:20 PM, Joost Ouwerkerk wrote: > Hmm... Even after deleting with cl.ALL, I'm getting data back for some > rows

Re: Cassandra Java Client

2010-04-20 Thread Nathan McCall
Dop, Thank you for trying out hector. I think you have the right approach for using it with your project. Feel free to ping us directly regarding Hector on either of these mailings lists as appropriate: http://wiki.github.com/rantav/hector/mailing-lists Cheers, -Nate On Tue, Apr 20, 2010 at 7:11

Re: get_range_slices in hector

2010-04-19 Thread Nathan McCall
Not yet. If you wanted to provide a patch that would be much appreciated. A fork and pull request would be best logistically, but whatever works. -Nate On Mon, Apr 19, 2010 at 5:10 PM, Chris Dean wrote: > Is there a version of hector that has an interface to get_range_slices ? > or should I prov

Re: Is that possible to write a file system over Cassandra?

2010-04-15 Thread Nathan McCall
In regards to hector, please check all the available branches on github. We have supported 0.6 for a little while now. http://github.com/rantav/hector/tree/0.6.0 The master is still based on 0.5, but that is changing in the next couple of days to match the 0.6 release. -Nate On Thu, Apr 15,

Re: framed transport

2010-04-15 Thread Nathan McCall
FWIW, We just exposed this as an option in hector. -Nate On Thu, Apr 15, 2010 at 8:38 AM, Miguel Verde wrote: > On Thu, Apr 15, 2010 at 10:22 AM, Eric Evans wrote: >> >> But, if you've enabled framing on the server, you will not >> be able to use C# clients (last I checked, there was no framed

Re: Range scan performance in 0.6.0 beta2

2010-03-25 Thread Nathan McCall
I noticed you turned Key caching off in your ColumnFamily declaration, have you tried experimenting with this on and playing key caching configuration? Also, have you looked at the JMX output for what commands are pending execution? That is always helpful to me in hunting down bottlenecks. -Nate

Re: 'Tearing down' a test database

2010-03-24 Thread Nathan McCall
Take a look at EmbeddedServerHelper in the hector client for an example of how this is managed through a test case: http://github.com/rantav/hector/blob/master/src/test/java/me/prettyprint/cassandra/testutils/EmbeddedServerHelper.java -Nate On Wed, Mar 24, 2010 at 5:10 AM, Philip Jackson wrote:

Re: Digg's data model

2010-03-19 Thread Nathan McCall
Gary, Did you see this larticle linked from the Cassandra wiki? http://about.digg.com/node/564 See http://wiki.apache.org/cassandra/ArticlesAndPresentations for more examples like the above. In general, you structure your data according to how it will be queried. This can lead to duplication, but

Re: cassandra not responding

2010-03-16 Thread Nathan McCall
The cache is a "second-chance FIFO" from this library: http://code.google.com/p/concurrentlinkedhashmap/source/browse/trunk/src/java/com/reardencommerce/kernel/collections/shared/evictable/ConcurrentLinkedHashMap.java That sounds like an awful lot of churn given the size of the queue and the numbe