Re: How to come up with a predefined topology

2012-07-12 Thread prasenjit mukherjee
On Fri, Jul 13, 2012 at 4:04 AM, aaron morton wrote: > The logic is here > https://github.com/apache/cassandra/blob/cassandra-1.1/src/java/org/apache/cassandra/locator/NetworkTopologyStrategy.java#L78 Thanks Aaron for pointing to the code. > > a. n>r : I am assuming, have 1 replica in each rack.

High RecentWriteLatencyMicro

2012-07-12 Thread rohit bhatia
Hi As I understand that writes in cassandra are directly pushed to memory and using counters with CL.ONE shouldn't take the read latency for counters in account. So Writes for incrementing counters with CL.ONE should basically be really fast. But in my 8 node cluster(16 core/32G ram/cassandra1.0.

Re: Cassandra take 100% CPU for 2~3 minutes every half an hour and mutation lost

2012-07-12 Thread Jason Tang
Hi After change the parameter of concurrent compactor, we can limit Cassandra to use 100% of one core at that moment. (concurrent_compactors: 1) And I got the stack of the "crazy" thread, it last 2~3 minutes, on same stack. Any clue of this issue? Thread 18114: (state = IN_JAVA) - java.util.A

Re: is this something to be concerned about - MUTATION message dropped

2012-07-12 Thread Frank Hsueh
oh. darn. I was hoping for something like, "here's the data you requested, and by the way, latencies are 80% to the point of timeout; might want to back off a little" mx4j it is. On Wed, Jul 11, 2012 at 10:46 PM, Tyler Hobbs wrote: > JMX is really the only way it exposes that kind of informa

Re: Increased replication factor not evident in CLI

2012-07-12 Thread Michael Theroux
Sounds a lot like a bug that I hit that was filed and fixed recently: https://issues.apache.org/jira/browse/CASSANDRA-4432 -Mike On Jul 12, 2012, at 8:16 PM, Edward Capriolo wrote: > Possibly the bug with nanotime causing cassandra to think the change happened > in the past. Talked about onlis

Re: BulkLoading sstables from v1.0.3 to v1.1.1

2012-07-12 Thread Edward Capriolo
Historically you have not been able to stream stables between different file formats. Cassandra 1.0 creates files named hc . While 1.1 uses hd. Since bulk loading streams I am not sure this will work. On Thursday, July 12, 2012, aaron morton wrote: > Do you have the full error logs ? Their should

Re: Increased replication factor not evident in CLI

2012-07-12 Thread Edward Capriolo
Possibly the bug with nanotime causing cassandra to think the change happened in the past. Talked about onlist in past few days. On Thursday, July 12, 2012, aaron morton wrote: > Do multiple nodes say the RF is 2 ? Can you show the output from the CLI ? Do show schema and show keyspace say the sam

Re: Concerns about Cassandra upgrade from 1.0.6 to 1.1.X

2012-07-12 Thread Roshan
Thanks Aaron. My major concern is upgrade node by node. Because currently we are using 1.0.6 in production and plan is to upgrade singe node to 1.1.2 at a time. Any comments? Thanks. -- View this message in context: http://cassandra-user-incubator-apache-org.3065146.n2.nabble.com/Concerns-about

Re: Increased replication factor not evident in CLI

2012-07-12 Thread aaron morton
Do multiple nodes say the RF is 2 ? Can you show the output from the CLI ? Do show schema and show keyspace say the same thing ? Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 13/07/2012, at 7:39 AM, Dustin Wenz wrote: > We recently inc

Re: Composite column/key creation via Hector

2012-07-12 Thread Dave Brosius
BTW, an issue was just fixed with dynamic columns in hector, you might want to try trunk. https://github.com/hector-client/hector/commit/2910b484629add683f61f392553e824c291fb6eb On 07/12/2012 06:25 PM, aaron morton wrote: You may have better luck on the Hector Mailing list… https://groups.go

Re: How to come up with a predefined topology

2012-07-12 Thread aaron morton
> WIll it also use the > snitch/strategy info to find next 'R' replicas 'closest' to > coordinator-node ? yes. > 2. In a single DC ( with n racks and r replicas ) what algorithm The logic is here https://github.com/apache/cassandra/blob/cassandra-1.1/src/java/org/apache/cassandra/locator/NetworkT

Re: Concerns about Cassandra upgrade from 1.0.6 to 1.1.X

2012-07-12 Thread aaron morton
It's always a good idea to have a read of the NEWS.txt file https://github.com/apache/cassandra/blob/cassandra-1.1/NEWS.txt Cheers - Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 12/07/2012, at 5:51 PM, Tyler Hobbs wrote: > On Wed, Jul 11, 2012 at

Re: Composite column/key creation via Hector

2012-07-12 Thread aaron morton
You may have better luck on the Hector Mailing list… https://groups.google.com/forum/?fromgroups#!forum/hector-users Here is something I found in the docs though http://hector-client.github.com/hector/build/html/content/composite_with_templates.html Cheers - Aaron Morton Freel

Re: Connected file list in Cassandra

2012-07-12 Thread aaron morton
Can pages appear in many documents ? If not try this Document CF: row_key: doc_id column: page_number is the order of pages, page_id is the row key for below Page CF: row_key: page_id columns: - doc_id - page_data If you know the page_id, read the doc_id from Page CF, then ite

How to speed up data loading

2012-07-12 Thread Leonid Ilyevsky
I am loading a large set of data into a CF with composite key. The load is going pretty slow, hundreds or even thousands times slower than it would do in RDBMS. I have a choice of how granular my physical key (the first component of the primary key) is, this way I can balance between smaller row

Increased replication factor not evident in CLI

2012-07-12 Thread Dustin Wenz
We recently increased the replication factor of a keyspace in our cassandra 1.1.1 cluster from 2 to 4. This was done by setting the replication factor to 4 in cassandra-cli, and then running a repair on each node. Everything seems to have worked; the commands completed successfully and disk usa

Re: failed to delete commitlog, cassandra can't accept writes

2012-07-12 Thread Holger Hoffstaette
On Tue, 10 Jul 2012 14:35:23 -0700, Frank Hsueh wrote: > after reading the JIRA, I decided to use Java 6. It has nothing to do with the JDK. I can reproduce it with either JDK6 or JDK7 as well. > anybody seen this before? is this related to 4337 ? It's exactly that. -h

Re: Why is our range query failing in Cassandra 0.8.10 Client

2012-07-12 Thread Sylvain Lebresne
When executing a query like: get events WHERE Firm=434550 AND ds_timestamp>=1341955958200 AND ds_timestamp<=1341955958200; what the 2ndary index implementation will do is: 1) it queries the index for Firm for the row with key 434550 (because that's the only one restricted by an equal clause, and

Re: How to come up with a predefined topology

2012-07-12 Thread prasenjit mukherjee
Thanks. Some follow up questions : 1. How do the reads use strategy/snitch information ? I am assuming the reads can go to any of the replicas. WIll it also use the snitch/strategy info to find next 'R' replicas 'closest' to coordinator-node ? 2. In a single DC ( with n racks and r replicas ) wh