Re: cassandra 2.0.6 refuses to start

2014-04-01 Thread Marcin Cabaj
Strange, could you paste here output of: $ grep -n exec ./bin/cassandra On Mon, Mar 31, 2014 at 8:05 PM, Tim Dunphy bluethu...@gmail.com wrote: Is SELinux enabled? Nope! It's disabled. On Mon, Mar 31, 2014 at 2:50 PM, Michael Shuler mich...@pbandjelly.orgwrote: Is SELinux enabled?

Finding cut-off points

2014-04-01 Thread Kasper Petersen
Hi, I have a large amount (can be 100 million) of (id uuid, score int) entries in Cassandra. I need to, at regular intervals of lets say 30-60 minutes, find the cut-off points for the score needed to be in the top 0.1%, 33% and 66% of all scores. What would a good approach be to this problem?

Dead node appearing in datastax driver

2014-04-01 Thread Apoorva Gaurav
Hello All, We had a 4 node cassandra 2.0.4 cluster ( lets call them host1, host2, host3 and host4), out of which we've removed one node (host4) using nodetool removenode command. Now using nodetool status or nodetool ring we no longer see host4. It's also not appearing in Datastax opscenter. But

Re: Dead node appearing in datastax driver

2014-04-01 Thread Sylvain Lebresne
On Tue, Apr 1, 2014 at 12:50 PM, Apoorva Gaurav apoorva.gau...@myntra.comwrote: Hello All, We had a 4 node cassandra 2.0.4 cluster ( lets call them host1, host2, host3 and host4), out of which we've removed one node (host4) using nodetool removenode command. Now using nodetool status or

Re: Dead node appearing in datastax driver

2014-04-01 Thread Apoorva Gaurav
Hello Sylvian, Queried system.peers on three live nodes and host4 is appearing on two of these. On Tue, Apr 1, 2014 at 5:06 PM, Sylvain Lebresne sylv...@datastax.comwrote: On Tue, Apr 1, 2014 at 12:50 PM, Apoorva Gaurav apoorva.gau...@myntra.com wrote: Hello All, We had a 4 node

Re: Dead node appearing in datastax driver

2014-04-01 Thread Apoorva Gaurav
Did that and I actually see a significant reduction in write latency. On Tue, Apr 1, 2014 at 5:35 PM, Sylvain Lebresne sylv...@datastax.comwrote: On Tue, Apr 1, 2014 at 1:49 PM, Apoorva Gaurav apoorva.gau...@myntra.comwrote: Hello Sylvian, Queried system.peers on three live nodes and

Specifying startBefore with iterators with compositeKeys

2014-04-01 Thread Brian Tarbox
I have a composite key consisting of: (integer, bytes) and I have rows like: (1,abc), (1,def), (2,abc), (2,def) and I want to find all rows with the integer part = 2. I need to create a startBeyondName using CompositeType.Builder class and am wondering if specifying (2, Bytes.Empty) will sort

Re: Dead node appearing in datastax driver

2014-04-01 Thread Sylvain Lebresne
What does Did that mean? Does that means I upgraded to 2.0.6, or does that mean I manually removed entries from System.peers. If the latter, I'd need more info on what you did exactly, what your peers table looked like before and how they look like now: there is no reason deleting the peers

Re: Finding cut-off points

2014-04-01 Thread Steven A Robenalt
Hi Kasper, I'd suggest taking a look at Spark, Storm, or Samza (all are Apache projects) for a possible approach. Depending on your needs and your existing infrastructure, one of those may work better than others for you. Steve On Tue, Apr 1, 2014 at 2:51 AM, Kasper Petersen

Re: Timeuuid inserted with now(), how to get the value back in Java client?

2014-04-01 Thread Theo Hultberg
no, there's no way. you should generate the TIMEUUID on the client side so that you have it. T# On Sat, Mar 29, 2014 at 1:01 AM, Andy Atj2 andya...@gmail.com wrote: I'm writing a Java client to a Cassandra db. One of the main primary keys is a timeuuid. I plan to do INSERTs using now()

Re: Timeuuid inserted with now(), how to get the value back in Java client?

2014-04-01 Thread Vivek Mishra
You would get UUID object from cassandra API. Then you may use uuid.timestamp() to get time stamp for the same -Vivek On Tue, Apr 1, 2014 at 9:55 PM, Theo Hultberg t...@iconara.net wrote: no, there's no way. you should generate the TIMEUUID on the client side so that you have it. T# On

Change IP address for all nodes

2014-04-01 Thread Christof Roduner
Hi, Due to some network renumbering, we will need to change the IP addresses (and networks) of all nodes in our cluster. Will the following procedure work, or is there anything special we'll need to consider? 1. shut down all nodes 2. update listen_address, rpc_address, seeds in

Re: Change IP address for all nodes

2014-04-01 Thread Robert Coli
On Tue, Apr 1, 2014 at 12:53 PM, Christof Roduner chris...@scandit.comwrote: Will the following procedure work, or is there anything special we'll need to consider? If you do not use auto_bootstrap:false, this will not work.

Re: Read performance in map data type

2014-04-01 Thread Robert Coli
On Mon, Mar 31, 2014 at 9:13 PM, Apoorva Gaurav apoorva.gau...@myntra.comwrote: Thanks Robert, Is there a workaround, as in our test setups we keep dropping and recreating tables. Use unique keyspace (or table) names for each test? That's the approach they're taking in 5202... =Rob

Re: Dead node appearing in datastax driver

2014-04-01 Thread Apoorva Gaurav
I manually removed entries from System.peers. The improvements can well be coincidental as various other apps were also running on the same test bed. On Tue, Apr 1, 2014 at 8:43 PM, Sylvain Lebresne sylv...@datastax.comwrote: What does Did that mean? Does that means I upgraded to 2.0.6, or

Re: Opscenter help?

2014-04-01 Thread Patricia Gorla
- Were you running a mixed EL5/EL6 environment? - What exact version of Cassandra were you upgrading from? As for SE, you have to amass a bit of their magic points before you can start to take more actions (tagging, down-voting, etc). Surprisingly good at keeping down spam. -- Patricia Gorla

Drop in node replacements.

2014-04-01 Thread Redmumba
Is it possible to have true drop in node replacements? For example, I have a cluster of 51 Cassandra nodes, 17 in each data center. I had one host go down on DC3, and when it came back up, it joined the ring, etc., but was not receiving any data. Even after multiple restarts and forcing a

Re: Specifying startBefore with iterators with compositeKeys

2014-04-01 Thread Tyler Hobbs
On Tue, Apr 1, 2014 at 9:53 AM, Brian Tarbox tar...@cabotresearch.comwrote: I think another way of saying this is: does HeapByteBuffer with pos=,lim=0,cap=0 sort prior to any other possible HeapByteBuffer? Yes. However, if you use it as a slice finish, an empty ByteBuffer is greater than any

Re: Row cache for writes

2014-04-01 Thread Tyler Hobbs
On Mon, Mar 31, 2014 at 11:37 AM, Wayne Schroeder wschroe...@pinsightmedia.com wrote: I found a lot of documentation about the read path for key and row caches, but I haven't found anything in regard to the write path. My app has the need to record a large quantity of very short lived

Re: Drop in node replacements.

2014-04-01 Thread Robert Coli
On Tue, Apr 1, 2014 at 3:24 PM, Redmumba redmu...@gmail.com wrote: Is it possible to have true drop in node replacements? For example, I have a cluster of 51 Cassandra nodes, 17 in each data center. I had one host go down on DC3, and when it came back up, it joined the ring, etc., but was

Re: Read performance in map data type

2014-04-01 Thread Apoorva Gaurav
Thanks Sourabh, I've modelled my table as studentID int, subjectID int, marks int, PRIMARY KEY(studentID, subjectID) as primarily I'll be querying using studentID and sometime using studentID and subjectID. I've tried driver 2.0.0 and its giving good results. Also using its auto paging feature.

Re: Read performance in map data type

2014-04-01 Thread Sourabh Agrawal
From the doc : The fetch size controls how much resulting rows will be retrieved simultaneously. So, I guess it does not depend on the number of columns as such. As all the columns for a key reside on the same node, I think it wouldn't matter much whatever be the number of columns as long as we