Re: Internal error processing insert

2011-02-14 Thread Matthew Dennis
I had actually meant to (and thought I did) type "greater than zero and less than *or equal* to number of nodes". That being said, you usually do want it less than the number of nodes in the cluster because otherwise your cluster essentially has the same performance as a single node. In general (

Re: Internal error processing insert

2011-02-14 Thread Aaron Morton
He probably meant in production. When playing around, and if you only have 2 nodes, you can set it to 2. From memory RF of 2 means the Quorum is also 2, so you cannot afford to lose one. Thats fine for playing. Aaron On 15 Feb, 2011,at 01:51 PM, mcasandra wrote: mcasandra wrote: > > In earlier p

Re: Internal error processing insert

2011-02-14 Thread mcasandra
mcasandra wrote: > > In earlier post same thread you mentioned that replication factor should > be set to less than N. > > Currently I am testing on 2 node cluster and I was able to set > replication_factor to 2 (=N) and also when I did cfstats (I don't quite > understand cfstats in detail) and

Re: Internal error processing insert

2011-02-14 Thread mcasandra
In earlier post same thread you mentioned that replication factor should be set to less than N. Currently I am testing on 2 node cluster and I was able to set replication_factor to 2 (=N) and also when I did cfstats (I don't quite understand cfstats in detail) and see some activity on both nodes

Re: Internal error processing insert

2011-02-14 Thread Matthew Dennis
On Mon, Feb 14, 2011 at 6:28 PM, Aaron Morton wrote: > Will take a closer look at the code tonight, perhaps we should return an > error if you try to using Network Topology it cannot detect any DC's . > > +1

Re: Internal error processing insert

2011-02-14 Thread Eric Gilmore
For now, I have committed a change in the misleading documentation, substituting SimpleStrategy for NTS. Sorry you ran into trouble due to that, mcasandra. On Mon, Feb 14, 2011 at 4:28 PM, Aaron Morton wrote: > Will take a closer look at the code tonight, perhaps we should return an > error if y

Re: Internal error processing insert

2011-02-14 Thread Aaron Morton
Will take a closer look at the code tonight, perhaps we should return an error if you try to using Network Topology it cannot detect any DC's . CheersAaron On 15 Feb, 2011,at 01:22 PM, mcasandra wrote: That's what I thought might be happening since network topology will try to find one node on the

Re: Internal error processing insert

2011-02-14 Thread mcasandra
That's what I thought might be happening since network topology will try to find one node on the other data center. Message is little confusing though. [default@unknown] update keyspace twissandra placement_strategy='org.apache.cassandra.locator.SimpleStrategy'; Syntax error at position 28: miss

Re: Internal error processing insert

2011-02-14 Thread Aaron Morton
Not sure why the docs suggest to use the NetworkTopologyStrategy, if their are no data centres configured the NetworkTopologyStrategy will say the replication factor is 0. I think this is the source of the "invalid response count 1 for replication factor 0"  message. Can you try with the SimpleStra

Re: Internal error processing insert

2011-02-14 Thread mcasandra
No it's not set to 0. I am just following the example on datastax getting started site. Here are all the commands: [default@unknown] create keyspace twissandra with replication_factor=1 ... and placement_strategy='org.apache.cassandra.locator.NetworkTopologyStrategy'; 22dea790-3893-11e0-9174-

Re: Internal error processing insert

2011-02-14 Thread Matthew Dennis
Is your ReplicationFactor (RF) really set to 0? Don't do that, it needs to be at least 1 and probably needs to be 3 in production if you care about your data. It must be greater than 0 and less than the number of nodes in your ring. It represents the number of nodes to copy/replicate data to. An