Unsuccessful attempt to add a second node to a ring.

2012-08-01 Thread Jakub Glapa
Hi Everybody! I'm trying to add a second node to an already operating one node cluster. Some specs: - cassandra 1.0.7 - both nodes have a routable listen_address and rpc_address. - Ports are open: (from node2) telnet node1 7000 is successful - Seeds parameter on node2 points to node 1. [node1]

Re: Unsuccessful attempt to add a second node to a ring.

2012-08-01 Thread Roshni Rajagopal
Jakub, Have you set the Data, commitlog, saved cache directories to different ones in each yaml file for each node? Regards, Roshni From: Jakub Glapa jakub.gl...@gmail.commailto:jakub.gl...@gmail.com Reply-To: user@cassandra.apache.orgmailto:user@cassandra.apache.org

Re: Unsuccessful attempt to add a second node to a ring.

2012-08-01 Thread Jakub Glapa
Hi Roshni, no they are the same, my changes in cassandra.yaml were only in the listen_address, rpc_address, seeds and initial_token field. The rest is exactly the same as on node1. That's how the file looks on node2: cluster_name: 'Test Cluster' initial_token:

Re: Unsuccessful attempt to add a second node to a ring.

2012-08-01 Thread Roshni Rajagopal
Ok, sorry it may not be required, I was thinking of a configuration I had done on my local laptop, where I had aliased my IP address. In that case the directories and jmx port needed to be different. Cluster name is same right? From: Jakub Glapa

Re: Unsuccessful attempt to add a second node to a ring.

2012-08-01 Thread Jakub Glapa
yes it's the same -- regards, pozdrawiam, Jakub Glapa On Wed, Aug 1, 2012 at 11:24 AM, Roshni Rajagopal roshni.rajago...@wal-mart.com wrote: Ok, sorry it may not be required, I was thinking of a configuration I had done on my local laptop, where I had aliased my IP address. In that case

Restore snapshot

2012-08-01 Thread Desimpel, Ignace
Hi, Is it possible to restore a snapshot of a keyspace on a live cassandra cluster (I mean without restarting)?

Re: Does Cassandra support operations in a transaction?

2012-08-01 Thread Greg Fausak
Hi Ivan, No Cassandra does not support transactions. I believe each operation is atomic. If that operation returns a successful result, then it worked. You can't do things like bind two operations and guarantee is either fails they both fail. You will find that Cassandra doesn't do a lot of

Re: virtual memory of all cassandra-nodes is growing extremly since Cassandra 1.1.0

2012-08-01 Thread Thomas Spengler
Just for information we are running on 1.1.2 JNA or not, had no difference Manually call full gc, had no difference but in my case the reduction of commitlog_total_space_in_mb to 2048 (from default 4096) makes the difference. On 07/26/2012 04:27 PM, Mina Naguib wrote: Hi Thomas On a

Re: Unsuccessful attempt to add a second node to a ring.

2012-08-01 Thread Jakub Glapa
I found a similar thread from March : http://www.mail-archive.com/user@cassandra.apache.org/msg21007.html For me clearing the data and starting from the beginning didn't help. It's interesting because on my dev environment I was able to add another node without any problems. The only difference

Re: Creating counter columns in cassandra

2012-08-01 Thread Pushpalanka Jayawardhana
Hi All, I faced this same problem when trying to query the counter values. I am using a phone number as row key and updating the number of calls taken to that number. So my query is like SELECT KEY FROM columnFamily WHERE No_of_Calls5 This does not return any data, neither any exception, though

Re: virtual memory of all cassandra-nodes is growing extremly since Cassandra 1.1.0

2012-08-01 Thread Greg Fausak
Mina, Thanks for that post. Very interesting :-) What sort of things are you graphing? Standard *nux stuff (mem/cpu/etc)? Or do you have some hooks in to the C* process (I saw somoething about port 1414 in the .yaml file). Best, -g On Thu, Jul 26, 2012 at 9:27 AM, Mina Naguib

Re: virtual memory of all cassandra-nodes is growing extremly since Cassandra 1.1.0

2012-08-01 Thread Mina Naguib
All our servers (cassandra and otherwise) get monitored with nagios + get many basic metrics graphed by pnp4nagios. This covers a large chunk of a box's health, as well as cassandra basics (specifically the pending tasks, JVM heap state). IMO it's not possible to clearly debug a cassandra

Re: Does Cassandra support operations in a transaction?

2012-08-01 Thread Ivan Jiang
Hi Greg, Thank you for your answers. I should have to convert my mind to NoSql from RD-SQL while using Cassandra. Best Regards, Ivan On Wed, Aug 1, 2012 at 9:20 PM, Greg Fausak g...@named.com wrote: Hi Ivan, No Cassandra does not support transactions. I believe each operation is

Re: Does Cassandra support operations in a transaction?

2012-08-01 Thread Roshni Rajagopal
Hi Ivan, Cassandra supports 'tunable consistency' . If you always read and write at a quorum (or local quorum for multi data center) from one , you can guarantee that the results will be consistent as in all the data will be compared and the latest will be returned, and no data will be out of

Re: Looking for a good Ruby client

2012-08-01 Thread Thorsten von Eicken
Harry, we're in a similar situation and are starting to work out our own ruby client. The biggest issue is that it doesn't make much sense to build a higher level abstraction on anything other than CQL3, given where things are headed. At least this is our opinion. At the same time, CQL3 is just

Re: Does Cassandra support operations in a transaction?

2012-08-01 Thread Jeffrey Kesselman
Roshni, Thats not what consistancy in ACID means. Its not consistancy of reading the ame data, its referntial integrity between related pecies of data. Consistency Data is in a consistent state when a transaction starts and when it ends. For example, in an application that transfers funds from

Re: Does Cassandra support operations in a transaction?

2012-08-01 Thread Jeffrey Kesselman
True consistancy, btw, pretty much is only possible in a transactional environment. On Thu, Aug 2, 2012 at 12:56 AM, Jeffrey Kesselman jef...@gmail.com wrote: Roshni, Thats not what consistancy in ACID means. Its not consistancy of reading the ame data, its referntial integrity between