Re: Dynamic Snitch / Read Path Questions

2010-12-13 Thread Brandon Williams
On Mon, Dec 13, 2010 at 6:43 PM, Daniel Doubleday wrote: > Oh - well but I see that the coordinator is actually using its own score > for ordering. I was only concerned that dropped messages are ignored when > calculating latencies but that seems to be the case for local or remote > responses. And

Re: Dynamic Snitch / Read Path Questions

2010-12-13 Thread Daniel Doubleday
On 13.12.10 21:15, Brandon Williams wrote: On Sun, Dec 12, 2010 at 10:49 AM, Daniel Doubleday mailto:daniel.double...@gmx.net>> wrote: Hi again. It would be great if someone could comment whether the following is true or not. I tried to understand the consequences of using

Re: Secondary Indexes with TimeUUIDType CF Not Working?

2010-12-13 Thread Tyler Hobbs
When you say 'comparator = TimeUUIDType', your saying that all column names are TimeUUIDs. So, when you try to create an index on a column with name 'uuid_nonindexed', it complains because that's a string, not a TimeUUID. - Tyler On Mon, Dec 13, 2010 at 6:16 PM, Frank LoVecchio wrote: > I was

Secondary Indexes with TimeUUIDType CF Not Working?

2010-12-13 Thread Frank LoVecchio
I was playing around with secondary indexes in 0.7 RC2 through the command line, and I can't seem to get them work with a TimeUUIDType Column Family. For Instance: create column family TestSecondaryIndexes with comparator = TimeUUIDType ... and column_metadata=[{column_name: uuid_nondexed, valida

Re: unable to start cassandra-0.7r2

2010-12-13 Thread Edward Capriolo
On Mon, Dec 13, 2010 at 5:45 PM, Eric Evans wrote: > On Mon, 2010-12-13 at 17:27 -0500, Liangzhao Zeng wrote: >> I can run the 0.66 using same logging setup without any problem. Not >> sure what's the difference when starting up the 0.7 in eclipse. Can >> someone share the logging setup? > > Make

Re: unable to start cassandra-0.7r2

2010-12-13 Thread Eric Evans
On Mon, 2010-12-13 at 17:27 -0500, Liangzhao Zeng wrote: > I can run the 0.66 using same logging setup without any problem. Not > sure what's the difference when starting up the 0.7 in eclipse. Can > someone share the logging setup? Make sure that you have -Dlog4j.configuration=log4j-server.prope

Re: unable to start cassandra-0.7r2

2010-12-13 Thread Liangzhao Zeng
I can run the 0.66 using same logging setup without any problem. Not sure what's the difference when starting up the 0.7 in eclipse. Can someone share the logging setup? Cheers, Liangzhao On Mon, Dec 13, 2010 at 5:12 PM, Aaron Morton wrote: > Given that log4j could not find it's configuration f

Re: unable to start cassandra-0.7r2

2010-12-13 Thread Aaron Morton
Given that log4j could not find it's configuration file I'm guessing it's a problem with the current working directory when eclipse starts cassandra.Can you start cassandra manually from where you have the source code? I do not use eclipse so may not be much more help.AaronOn 14 Dec, 2010,at 11:01

Re: unable to start cassandra-0.7r2

2010-12-13 Thread Liangzhao Zeng
log4j:WARN No appenders could be found for logger (org.apache.cassandra.service.AbstractCassandraDaemon). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Bad configuration; unable to start server That i

Re: Dynamic Snitch / Read Path Questions

2010-12-13 Thread Brandon Williams
On Sun, Dec 12, 2010 at 10:49 AM, Daniel Doubleday wrote: > Hi again. > > It would be great if someone could comment whether the following is true or > not. > I tried to understand the consequences of using > |-Dcassandra.dynamic_snitch=true for the read path |and that's what I came > up with: >

Re: cassandra database viewer

2010-12-13 Thread Brandon Williams
On Mon, Dec 13, 2010 at 1:28 PM, Aaron Morton wrote: > The github page for Chiton says to use the current dev, but thats not > correct. Cassandra 0.7 uses thrift 0.5 > It was correct when I wrote the readme :) > I also see the is a 0.7 branch for chiton are you using that? > You need to use th

Re: Consistency question caused by Read_all and Write_one

2010-12-13 Thread Aaron Morton
In your example is a little unclear. If you are writing to a single row and creating columns with user names. Then when you read all the columns for row 1 you will get columns called Dan and Ken. If you are writing to the same column, let's say called user, then *if* they are send with the sam

Re: cassandra database viewer

2010-12-13 Thread Aaron Morton
The github page for Chiton says to use the current dev, but thats not correct. Cassandra 0.7 uses thrift 0.5 I also see the is a 0.7 branch for chiton are you using that? Aaron On 14/12/2010, at 5:27 AM, "Amin Sakka, Novapost" wrote: > I'm using the 0.6.0-dev version > > a...@cassandra:~$

Re: unable to start cassandra-0.7r2

2010-12-13 Thread Aaron Morton
Can you provide the full log messages so we can see where they are logged from and if there are any other messages as well. It's probably a problem finding the config file or an invalid config file. Aaron On 14/12/2010, at 4:02 AM, Liangzhao Zeng wrote: > I use VM argument to specify the conf

Re: easiest learning resources on Cassandra?

2010-12-13 Thread Kani
Hi Rajkumar, I don't know what you have read about Cassandra. First of all I will start with the following links: http://wiki.apache.org/cassandra/GettingStarted http://nosql.mypopescu.com/post/573604395/tutorial-getting-started-with-cassandra <

easiest learning resources on Cassandra?

2010-12-13 Thread Rajkumar Gupta
Could anyone tell me about where I can get learning resources on Cassandra? I am beginning in cassandra to develop a social network application. Please suggest a language/framework suitable for this purpose. Thanks -- ___ Rajkumar Gupta Dihing 173, Indian Inst

Re: Consistency question caused by Read_all and Write_one

2010-12-13 Thread Alvin UW
Yes, the same timestamp 2010/12/10 Ryan King > On Fri, Dec 10, 2010 at 12:49 PM, Alvin UW wrote: > > Hello, > > > > > > I got a consistency problem in Cassandra. > > > > Given a column family with a record:Id Name > > 1David > >

Re: Triggering Major Compaction

2010-12-13 Thread Tyler Hobbs
Major compactions should only be considered when your rows tend to be split across many SSTables. i.e., you are constantly appending to or updating rows. Even then, they do put quite a load on your node, so they are less attractive if you don't have slow periods to run them. It should also be not

Re: Hector and secondary indexes

2010-12-13 Thread Nate McCall
In the hector source tree, IndexedSlicesQueryTest should provide some additional examples: https://github.com/rantav/hector/blob/master/core/src/test/java/me/prettyprint/cassandra/model/IndexedSlicesQueryTest.java A stand-alone example that might be easier to experiment with can be found here: htt

Re: cassandra database viewer

2010-12-13 Thread Amin Sakka, Novapost
I'm using the 0.6.0-dev version *a...@cassandra:~$ thrift -version* *Thrift version 0.6.0-dev* 2010/12/13 Kani > Amin, have you check that version of Cassandra Thrift interface Chiton > supports? It looks like Chiton is trying to comunicate to Cassandra daemon > using an old Thrift interface.

Re: cassandra database viewer

2010-12-13 Thread Kani
Amin, have you check that version of Cassandra Thrift interface Chiton supports? It looks like Chiton is trying to comunicate to Cassandra daemon using an old Thrift interface. On Mon, Dec 13, 2010 at 12:00 PM, Amin Sakka, Novapost < amin.sa...@novapost.fr> wrote: > > Hello community, > I install

Re: question about 0.7 RC2 CLI

2010-12-13 Thread Peter Lin
thanks, I didn't see that in the readme file I just looked at the news.txt file and it does mention the schema tool there. On Mon, Dec 13, 2010 at 10:10 AM, Jeremy Hanna wrote: > I think you need to load the schema from your yaml through the jmx call.  See > http://wiki.apache.org/cassandra/F

Re: question about 0.7 RC2 CLI

2010-12-13 Thread Jeremy Hanna
I think you need to load the schema from your yaml through the jmx call. See http://wiki.apache.org/cassandra/FAQ#no_keyspaces On Dec 13, 2010, at 9:02 AM, Peter Lin wrote: > I downloaded the latest RC2 to play with. > > I was able to convert my 0.6 storage-conf.xml using the conversion > tool

question about 0.7 RC2 CLI

2010-12-13 Thread Peter Lin
I downloaded the latest RC2 to play with. I was able to convert my 0.6 storage-conf.xml using the conversion tool. 0.7rc2 started up just fine for me and I was able to connect to it using the CLI. When I run "show keyspaces;" command I don't see the keyspaces I've defined. I'm probably missing so

Re: unable to start cassandra-0.7r2

2010-12-13 Thread Liangzhao Zeng
I use VM argument to specify the configuration file -Dstorage-config=/Users/zlzhao/Documents/eclipse/MaaSWorkspace/cassandra-0.7r2/test/conf/ -Dcassandra-foreground -ea -Xmx1G By the way, I can run the 0.66 using by following the wikipage. Do we need more configuration in order to run 0.7? Cheers

Re: cassandra database viewer

2010-12-13 Thread Amin Sakka, Novapost
Hello community, I installed Chiton on my ubuntu 9.4 machine. I have a problem when trying to connect chiton to the running cassandra daemon: the keyspace list is empty and I'm getting the following exception : *Invalid method name: 'get_string_list_property'* When I connect using *cassandra-cli, a

Re: Dynamic Snitch / Read Path Questions

2010-12-13 Thread Daniel Doubleday
Hi Peter I should have started with the why instead of what ... Background Info (I try to be brief ...) We have a very small production cluster (started with 3 nodes, now we have 5). Most of our data is currently in mysql but we want to slowly move the larger tables which are killing our mysql

Re: Hector and secondary indexes

2010-12-13 Thread Jake Luciani
There is an example using hector here: http://www.riptano.com/blog/whats-new-cassandra-07-secondary-indexes On Mon, Dec 13, 2010 at 6:25 AM, Sébastien Druon wrote: > Hello! > > How is it possible to query a secondary index with Hector? > The equivalent of the following CLI command for example: >

Re: disks and data files

2010-12-13 Thread Sylvain Lebresne
On Mon, Dec 13, 2010 at 12:29 PM, shimi wrote: > I am reading the kafka design documentation > (http://sna-projects.com/kafka/design.php) and I came across this (under > constant time suffices) : > Intuitively a persistent queue could be built on simple reads and appends to > files as is commonly

Triggering Major Compaction

2010-12-13 Thread Colin Vipurs
We've had our small cluster successfully running in production for ~6 weeks now with everything working beautifully. Over the weekend I noticed the load on 2 boxes shoot up to 5-6x that of the others and after kicking off a major compaction the load has come back down to normal. What procedure sh

disks and data files

2010-12-13 Thread shimi
I am reading the kafka design documentation ( http://sna-projects.com/kafka/design.php) and I came across this (under constant time suffices) : Intuitively a persistent queue could be built on simple reads and appends to files as is commonly the case with logging solutions. Though this structure w

Hector and secondary indexes

2010-12-13 Thread Sébastien Druon
Hello! How is it possible to query a secondary index with Hector? The equivalent of the following CLI command for example: get users where birth_date = 1973; with a secondary index defined on birth_date Thanks in advance for the help Sebastien Druon

Re: N to N relationships

2010-12-13 Thread Sébastien Druon
Thanks a lot for the support! On Thu, 2010-12-09 at 19:50 -0600, Nick Bailey wrote: > I would also recommend two column families. Storing the key as NxN > would require you to hit multiple machines to query for an entire row > or column with RandomPartitioner. Even with OPP you would need to pick

Re: unable to start cassandra-0.7r2

2010-12-13 Thread shimi
I have seen this error in 0.6.x when I was missing the cash directory configuration. Maybe you are missing something in your configuration. Shimi On Mon, Dec 13, 2010 at 12:45 PM, aaron morton wrote: > I've seen that before when cassandra.yaml file cannot be found or is > corrupted. It may be th

Re: unable to start cassandra-0.7r2

2010-12-13 Thread aaron morton
I've seen that before when cassandra.yaml file cannot be found or is corrupted. It may be that eclipse is not starting cassandra with the current working directory set as you think it is. Sorry, cannot help much with eclipse. There are a couple of places where that message can be logged. One is

Re: iterate over all the rows with RP

2010-12-13 Thread David Boxenhorn
Shimi, I am using Hector to do exactly what you want to do, with no problems. (In fact, the question didn't even occur to me...) On Sun, Dec 12, 2010 at 9:03 PM, Ran Tavory wrote: > This should be the case, yes, semantics isn't affected by the > connection and state isn't kept. What might happe

Re: Dynamic Snitch / Read Path Questions

2010-12-13 Thread Peter Schuller
> 1) If using CL > 1 than using the dynamic snitch will result in a data read > from node with the lowest latency (little simplified) even if the proxy node > contains the data but has a higher latency that other possible nodes which > means that it is not necessary to do load-based balancing on th

Re: Quorum and Datacenter loss

2010-12-13 Thread Peter Schuller
> It seems to me that with 2 datacenters, if one datacenter is lost, > the  reads/writes to cassandra  will fail in the surviving datacenter > because of the N/2 + 1 distribution of replicas.  In other words, you > need more than half of the replicas to respond but in the case of a > datacenter los

Re: Quorum and Datacenter loss

2010-12-13 Thread Peter Schuller
> I think there's a flaw in your logic.  Take the following scenario: Ok, so sorry if I was being unclear. Yes, if you have one out of two copies in data center B and the remainder in A, then A will be able to continue operating qt QUOROM in the event of a partition. But B still won't, so you have