Re: Cassandra Data Stax java driver & Snappy Compression library

2015-08-04 Thread Sachin Nikam
Janne, A little clarification i found snappy-java-1.0.4.1.jar on class path. But other questions still remain. On Tue, Aug 4, 2015 at 8:24 PM, Sachin Nikam wrote: > Janne, > Thanks for continuing to take the time to answer my queries. We noticed > that write latency (tp99) from Services S1 and S

Retrieve all the columnfamily / tables of thrift and CQL from the keyspace in cassandra

2015-08-04 Thread Shuo Chen
Hi, I use hector to manipulate cassandra of version 2.1.8 and want to retrieve all the tables from certain keyspace in an application. I use "KeyspaceDefinition.getCfDefs()" to retrieve the columnfamily list in a keyspace. However, I found that the getCfDefs() function can just retrieve the colum

Re: Cassandra Data Stax java driver & Snappy Compression library

2015-08-04 Thread Sachin Nikam
Janne, Thanks for continuing to take the time to answer my queries. We noticed that write latency (tp99) from Services S1 and S2 is 50% of the write latency (tp99) for Service S3. I also noticed that S1 and S2, which also use astyanax client library also have compress-lzf.jar on their class path. A

TTLs on tables with *only* primary keys?

2015-08-04 Thread Kevin Burton
I have a table which just has primary keys. basically: create table foo ( sequence bigint, signature text, primary key( sequence, signature ) ) I need these to eventually get GCd however it doesn’t seem to work. If I then run: select ttl(sequence) from foo; I get: Cannot use sel

Re: auto_bootstrap=false broken?

2015-08-04 Thread Robert Coli
On Tue, Aug 4, 2015 at 11:40 AM, horschi wrote: > unless you specify auto_bootstrap=false :) > ... so why are you doing that? Two experts are confused as to what you're trying to do; why do you think you need to do it? =Rob

Re: auto_bootstrap=false broken?

2015-08-04 Thread horschi
Hi Jonathan, unless you specify auto_bootstrap=false :) kind regards, Christian On Tue, Aug 4, 2015 at 7:54 PM, Jonathan Haddad wrote: > You're trying to solve a problem that doesn't exist. Cassandra only > starts serving reads when it's ready. > > On Tue, Aug 4, 2015 at 10:51 AM horschi wro

Re: Long joining node

2015-08-04 Thread Sebastian Estevez
That's the one. I set it to an hour to be safe (if a stream goes above the timeout it will get restarted) but it can probably be lower. All the best, [image: datastax_logo.png] Sebastián Estévez Solutions Architect | 954 905 8615 | sebastian.este...@datastax.com [im

Re: Long joining node

2015-08-04 Thread Stan Lemon
Sebastian, You're referring to streaming_socket_timeout_in_ms correct? What value do you recommend? All of my nodes are currently at the default 0. Thanks, Stan On Tue, Aug 4, 2015 at 2:16 PM, Sebastian Estevez < sebastian.este...@datastax.com> wrote: > It helps to set stream socket timeout i

Re: Long joining node

2015-08-04 Thread Stan Lemon
I'm running 2.0.11. These nodes are on bare metal at Soft Layer. So after I sent my first post logs a RuntimeException popped up in the logs, not sure if this might be related? ERROR 14:13:17,648 Exception in thread Thread[CompactionExecutor:505,1,main] java.lang.RuntimeException: Last written ke

Re: Long joining node

2015-08-04 Thread Sebastian Estevez
It helps to set stream socket timeout in the yaml so that you don't hang forever on a lost / broken stream. All the best, [image: datastax_logo.png] Sebastián Estévez Solutions Architect | 954 905 8615 | sebastian.este...@datastax.com [image: linkedin.png]

Re: Long joining node

2015-08-04 Thread Robert Coli
On Tue, Aug 4, 2015 at 11:02 AM, Stan Lemon wrote: > I am attempting to add a 13th node in one of the datacenters. I have been > monitoring this process from the node itself with nodetool netstats and > from one of the existing nodes using nodetool status. > > On the existing node I see the new n

Long joining node

2015-08-04 Thread Stan Lemon
Hello, I have a a cluster with 12 nodes each in 2 datacenters for a total of 24 nodes. I am attempting to add a 13th node in one of the datacenters. I have been monitoring this process from the node itself with nodetool netstats and from one of the existing nodes using nodetool status. On the exi

Re: auto_bootstrap=false broken?

2015-08-04 Thread Jonathan Haddad
You're trying to solve a problem that doesn't exist. Cassandra only starts serving reads when it's ready. On Tue, Aug 4, 2015 at 10:51 AM horschi wrote: > Hi Robert, > > sorry for the confusion. Perhaps write_survey is not my solution > (unfortunetaly I cant get it to work, so I dont really kno

Re: auto_bootstrap=false broken?

2015-08-04 Thread horschi
Hi Robert, sorry for the confusion. Perhaps write_survey is not my solution (unfortunetaly I cant get it to work, so I dont really know). I just thought that it *could* be my solution. What I actually want: I want to be able to start a new node, without it starting to serve reads prematurely. I

Re: auto_bootstrap=false broken?

2015-08-04 Thread horschi
Hi Aeljami, thanks for the ticket. I'll keep an eye on it. I can't get the survey to work at all on 2.0 (I am not getting any schema on the survey node). So I guess the survey is not going to be a solution for now. kind regards, Christian On Tue, Aug 4, 2015 at 3:29 PM, wrote: > I had proble

Re: auto_bootstrap=false broken?

2015-08-04 Thread Robert Coli
On Tue, Aug 4, 2015 at 6:19 AM, horschi wrote: > I would like to separate these steps: > 1. assign tokens > 2. have the node in a joining state, so that I can copy in data > 3. mark the node as ready > > Did anyone ever use write_survey for such a partial bootstrapping? > What you're asking do

Re: Understanding Cassandra Architecture

2015-08-04 Thread Patrick McFadin
Thouraya, Assuming that you have started all 4 nodes in step 1, then your cluster is setup and running. Gossip just relays state about the cluster members, not much else. The seed node isn't special in any way, it's just the node you have designated the other nodes to contact if they need to get

Understanding Cassandra Architecture

2015-08-04 Thread Thouraya TH
Hi all, 1- I have 4 nodes A, B, C, and D (A is the seed node). I have modified seed node address and listen address of each Cassandra.yaml file (I have modified nothing else) 2- Then, from A: CREATE KEYSPACE my_keyspace WITH REPLICATION = {‘class’:’Simple Strategy, ‘replication_factor’

RE: auto_bootstrap=false broken?

2015-08-04 Thread aeljami.ext
I had problems with write_survey. I opened a bug : https://issues.apache.org/jira/browse/CASSANDRA-9934 De : horschi [mailto:hors...@gmail.com] Envoyé : mardi 4 août 2015 15:20 À : user@cassandra.apache.org Objet : Re: auto_bootstrap=false broken? Hi Paulo, thanks for your feedback, but I think

Re: auto_bootstrap=false broken?

2015-08-04 Thread horschi
Hi Paulo, thanks for your feedback, but I think this is not what I am looking for. Starting with join_ring does not take any tokens in the ring. And the "nodetool join" afterwards will again do token-selection and data loading in one step. I would like to separate these steps: 1. assign tokens 2

Re: auto_bootstrap=false broken?

2015-08-04 Thread Paulo Motta
Hello Christian, You may use the start-up parameter -Dcassandra.join_ring=false if you don't want the node to join the ring on startup. More about this parameter here: http://docs.datastax.com/en/cassandra/2.0/cassandra/tools/toolsCUtility_t.html You can later join the ring via nodetool join comm

auto_bootstrap=false broken?

2015-08-04 Thread horschi
Hi everyone, I'll just ask my question as provocative as possible ;-) Isnt't auto_bootstrap=false broken the way it is currently implemented? What currently happens: New node starts with auto_bootstrap=false and it starts serving reads immediately without having any data. Would the following be