Re: Starting the Cassandra server from Java (without command line)

2011-04-16 Thread sam_
@Naren Thanks for the reply. I noticed that EmbeddedCassandraService is now part of the Cassandra distribution. The source code is changed compared to what Ran had posted at http://prettyprint.me/2010/02/14/running-cassandra-as-an-embedded-service/ I tried to use EmbeddedCassandraService with thi

Re: Starting the Cassandra server from Java (without command line)

2011-04-16 Thread sam_
@Jason Thanks, I found the Pelops EmbeddedCassandraServer implementation and am giving it a try. -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Starting-the-Cassandra-server-from-Java-without-command-line-tp6273826p6278564.html Sent from the cas

Re: Consistency model

2011-04-16 Thread Sean Bridges
If you are reading and writing at quorum, then what you are seeing shouldn't happen. You shouldn't be able to read N+1 until N+1 has been committed to a quorum of servers. At this point you should not be able to read N anymore, since there is no quorum that contains N. Dan - I think you are righ

Re: cassandra 0.6.3 error Connection refused to host: 127.0.0.1;

2011-04-16 Thread Ali Ahsan
Any one have solution for this problem ? On 04/13/2011 05:20 PM, Ali Ahsan wrote: I am not running any firewall this physical machine not EC2,I can telnet to port 8080 telnet 127.0.0.1 8080 Trying 127.0.0.1... Connected to localhost.localdomain (127.0.0.1). Escape character is '^]'. -

Re: What will be the steps for adding new nodes

2011-04-16 Thread ruslan usifov
2011/4/16 Roni : > I have a 0.6.4 Cassandra cluster of two nodes in full replica (replica > factor 2). I wants to add two more nodes and balance the cluster (replica > factor 2). > > I want all of them to be seed's. > > > > What should be the simple steps: > > 1. add the "true" to all the nodes or 

Re: Consistency model

2011-04-16 Thread Tyler Hobbs
James, Would you mind sharing your reader process code as well? On Fri, Apr 15, 2011 at 1:14 PM, James Cipar wrote: > I've been experimenting with the consistency model of Cassandra, and I > found something that seems a bit unexpected. In my experiment, I have 2 > processes, a reader and a wri

Re: cassandra 0.6.3 error Connection refused to host: 127.0.0.1;

2011-04-16 Thread Tyler Hobbs
http://wiki.apache.org/cassandra/JmxGotchas On Sat, Apr 16, 2011 at 12:20 PM, Ali Ahsan wrote: > Any one have solution for this problem ? > > > > On 04/13/2011 05:20 PM, Ali Ahsan wrote: > >> I am not running any firewall this physical machine not EC2,I can telnet >> to port 8080 >> >> >> telnet

Re: Problems with subcolumn retrieval after upgrade from 0.6 to 0.7

2011-04-16 Thread aaron morton
Can you run the same request as a get_slice naming the column in the SlicePredicate and see what comes back ? Can you reproduce the fault with logging set at DEBUG and send the logs ? Also, whats the compare function like for your custom type ? Cheers Aaron On 16 Apr 2011, at 07:34, Abraham

Re: Schemas diverging while dynamically creating CF.

2011-04-16 Thread aaron morton
There is a known issue for concurrent schema migrations https://issues.apache.org/jira/browse/CASSANDRA-1391 Once they diverge the I think you can delete the schema by removing the necessary system files and leaving the data files in place, then re-creating the files. And yes, you should not

Re: question about performance of Cassandra 0.7.4 under a read-heavy workload.

2011-04-16 Thread aaron morton
Am assuming you are not getting a hot spot in the ring using the OPP. When running 0.7.4 with reduced concurrent reads if you see the read stage backing up using nodetool tpstats and the output from iostats shows that the IO system is not stressed then you should return the concurrent reads to

Re: Two versions of schema

2011-04-16 Thread mcasandra
I don't think I got correct answer to my original post. Can someone please help? -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Two-versions-of-schema-tp6277365p6280070.html Sent from the cassandra-u...@incubator.apache.org mailing list archive a

Re: Consistency model

2011-04-16 Thread James Cipar
Here it is. There is some setup code and global variable definitions that I left out of the previous code, but they are pretty similar to the setup code here. import pycassa import random import time consistency_level = pycassa.cassandra.ttypes.ConsistencyLevel.QUORUM durat

Re: Consistency model

2011-04-16 Thread Tyler Hobbs
Here's what's probably happening: I'm assuming RF=3 and QUORUM writes/reads here. I'll call the replicas A, B, and C. 1. Writer process writes sequence number 1 and everything works fine. A, B, and C all have sequence number 1. 2. Writer process writes sequence number 2. Replica A writes suc

unsubscribe

2011-04-16 Thread subrahmanya harve

Re: Consistency model

2011-04-16 Thread Sean Bridges
Tyler, your answer seems to contradict this email by Jonathan Ellis [1]. In it Jonathan says, "The important guarantee this gives you is that once one quorum read sees the new value, all others will too. You can't see the newest version, then see an older version on a subsequent write [sic, I a

Re: Consistency model

2011-04-16 Thread Jonathan Ellis
Tyler is correct, because Cassandra doesn't wait until repair writes are acked before the answer is returned. This is something we can fix. On Sun, Apr 17, 2011 at 12:05 AM, Sean Bridges wrote: > Tyler, your answer seems to contradict this email by Jonathan Ellis > [1].  In it Jonathan says, > >