How to generate tokens for my two node Cassandra cluster?

2013-11-01 Thread Techy Teck
I am trying to setup two node Cassandra Cluster on windows machine. I have basically two windows machine and I was following this datastax tutorial ( http://www.datastax.com/2012/01/how-to-setup-and-monitor-a-multi-node-cassandra-cluster-on-windows ) Whenever I use the below command to get the

Not able to form a Cassandra cluster of two nodes in Windows?

2013-11-01 Thread Techy Teck
I am trying to setup two nodes of Cassandra cluster on my windows machine. Basically, I have two windows machine. In both of my machine, I have installed Cassandra 1.2.11 from Datastax. Now I was following this [tutorial](

Check out if Cassandra ready

2013-11-01 Thread Salih Kardan
Hi all, I am a newbie to Cassandra and I am tring to write test cases to cassandra with JUnit. I use CassandraDaemon class to start cassandra in IntelliJ IDEA. I want to wait until Cassandra up and running before runnig test methods. How can I wait until cassandra starts or is there any way to

Re: High loads only on one node in the cluster

2013-11-01 Thread Ashish Tyagi
Hi Evan, The clients connect to all nodes. We tried shutting the thrift server on the affected node. Loads did not come down. On Fri, Nov 1, 2013 at 12:59 AM, Evan Weaver e...@fauna.org wrote: Are all your clients only connecting to your first node? I would probably strace it and compare

Re: High loads only on one node in the cluster

2013-11-01 Thread Rakesh Rajan
@Tyler / @Rob, As Ashish mentioned earlier, we have 9 nodes on AWS - 6 on EastCoast and 3 on Singapore. All 9 nodes uses EC2Snitch. The current ring ( across all nodes in 2 DC ) looks like this: ip11 - East Coast - m1.xlarge / us-east-1b - Size: 83 GB - Token: 0 ip21 - Singapore -

Re: High loads only on one node in the cluster

2013-11-01 Thread Rakesh Rajan
Forgot to mention: All 9 nodes on Cassandra 1.2.9. Also, tpstats on the high CPU node indicate: 1. Pool NameActive Pending Completed Blocked All time blocked 2. ReadStage32 6600 3420385815 0 0 3.

Re: Not able to form a Cassandra cluster of two nodes in Windows?

2013-11-01 Thread Aaron Mintz
One issue I ran into that produced similar symptoms: if you have internode_compression turned on without the proper snappy library available for your architecture (i had 64-bit linux), starting up will fail to link the nodes. It'll also be silent unless you set a certain class logging level to

Re: Check out if Cassandra ready

2013-11-01 Thread Tom van den Berge
I recommend using CassandraUnit (https://github.com/jsevellec/cassandra-unit). It makes using Cassandra in unit tests quite easy. It allows you to start an embedded Cassandra synchronously with a single simple method call, optionally load your schema and initial data, and you're ready to start

Re: How to generate tokens for my two node Cassandra cluster?

2013-11-01 Thread Peter Sanford
I can't tell you why that one-liner isn't working, but you can try http://www.cassandraring.com for generating balanced tokens. On Thu, Oct 31, 2013 at 11:59 PM, Techy Teck comptechge...@gmail.comwrote: I am trying to setup two node Cassandra Cluster on windows machine. I have basically two

Re: How to generate tokens for my two node Cassandra cluster?

2013-11-01 Thread Ray Sutton
Your quotes need to be escaped: python -c num=2; print \\n\.join([(\token %d: %d\ %(i,(i*(2**127)/num))) for i in range(0,num)]) -- Ray //o-o\\ On Fri, Nov 1, 2013 at 10:36 AM, Peter Sanford psanf...@nearbuysystems.comwrote: I can't tell you why that one-liner isn't working, but you can

Cassandra remove column using thrift

2013-11-01 Thread Suruchi Deodhar
Hello folks, I have a couple of questions regarding deletion of columns from Cassandra using thrift. I am trying to remove a column using the thrift API call - remove() defined as below. void remove(1:required binary key, 2:required ColumnPath column_path, 3:required

Re: High loads only on one node in the cluster

2013-11-01 Thread Tyler Hobbs
On Fri, Nov 1, 2013 at 5:07 AM, Rakesh Rajan rakes...@gmail.com wrote: 1) By alternating racks, do you mean to alternate racks between all nodes in a single DC v/s multiple DCs? AWS EastCoast has 4 AZs and Singapore has 2 AZs. So is the final solution something like this: ip11 - East Coast -

Re: Cassandra 1.1.6 - New node bootstrap not completing

2013-11-01 Thread Narendra Sharma
I was successfully able to bootstrap the node. The issue was RF 2. Thanks again Robert. On Wed, Oct 30, 2013 at 10:29 AM, Narendra Sharma narendra.sha...@gmail.com wrote: Thanks Robert. I didn't realize that some of the keyspaces (not all and esp. the biggest one I was focusing on) had RF

Re: Not able to form a Cassandra cluster of two nodes in Windows?

2013-11-01 Thread Techy Teck
In my case, both of my laptop are running Windows 7 64 bit.. Not sure what's the problem... On Fri, Nov 1, 2013 at 4:48 AM, Aaron Mintz aaron.m.mi...@gmail.com wrote: One issue I ran into that produced similar symptoms: if you have internode_compression turned on without the proper snappy

Re: High loads only on one node in the cluster

2013-11-01 Thread Rakesh Rajan
Tyler, Thanks for the explanation. The objective is not to have a perfectly balanced US-East and SG DC clusters. SG DC cluster is just a backup cluster and hence has lesser nodes than US-East cluster. What we are trying to figure out is the imbalance between the 6 nodes within US-East itself.

Re: IllegalStateException when bootstrapping new nodes

2013-11-01 Thread Cyril Scetbon
We got issues with Hinted Handoff threads (2 actives) now which cause High CPU Load and a lot of garbage collection only on our new nodes. You can see that we have a lot of Hints on our new nodes (the 4 last ones) node001 2.2M/cassandra/data/system/hints/ node002 1.6M

Re: Cassandra 1.1.6 - New node bootstrap not completing

2013-11-01 Thread Robert Coli
On Fri, Nov 1, 2013 at 9:36 AM, Narendra Sharma narendra.sha...@gmail.comwrote: I was successfully able to bootstrap the node. The issue was RF 2. Thanks again Robert. For the record, I'm not entirely clear why bootstrapping two nodes into the same range should have caused your specific

Frustration with repair process in 1.1.11

2013-11-01 Thread Oleg Dulin
First I need to vent. rant One of my cassandra cluster is a dual data center setup, with DC1 acting as primary, and DC2 acting as a hot backup. Well, guess what ? I am pretty sure that it falls behind on replication. So I am told I need to run repair. I run repair (with -pr) on DC2. First

Recompacting all sstables

2013-11-01 Thread Jiri Horky
Hi all since we upgraded half of our Cassandra cluster to 2.0.0 and we use LCS, we hit CASSANDRA-6284 bug. So basically all data in sstables created after the upgrade are wrongly (non-uniformly within compaction levels) distributed. This causes a huge overhead when compacting new sstables (see

Re: Recompacting all sstables

2013-11-01 Thread Robert Coli
On Fri, Nov 1, 2013 at 12:47 PM, Jiri Horky ho...@avast.com wrote: since we upgraded half of our Cassandra cluster to 2.0.0 and we use LCS, we hit CASSANDRA-6284 bug. 1) Why upgrade a cluster to 2.0.0? Hopefully not a production cluster? [1] 2) CASSANDRA-6284 is ouch, thx for filing and

Re: Cassandra remove column using thrift

2013-11-01 Thread Robert Coli
On Fri, Nov 1, 2013 at 8:15 AM, Suruchi Deodhar suruchi.deod...@generalsentiment.com wrote: I provide the timestamp as the current time and consistency_level=ConsistencyLevel.ALL. My questions wrt this are: 1. Is there a log where I can check whether the remove command registered

Re: Cassandra remove column using thrift

2013-11-01 Thread Jayadev Jayaraman
Hey guys, False alarm, sorry about that. Our column-names are byte-concatenations of short integers and we had been constructing the column names wrongly before attempting a delete. We fixed the problem and we've been able to delete the columns without issue. On Fri, Nov 1, 2013 at 4:19 PM,

Strange exception when storing heavy data in cassandra 2.0.0...

2013-11-01 Thread Krishna Chaitanya
Hello, I am newbie to the Cassandra world. I am currently using Cassandra 2.0.0 with thrift 0.8.0 for storing netflow packets using libQtCassandra library. Currently, I am generating about 1000 netflows/sec and store\ing them into the database. The program is crashing with the an