Re: Setting up a multi-node cluster

2013-08-28 Thread Dinesh
My first node is running and second node is not running in this case I tried telnet from second node to first node. Following is the stdout # telnet 10.96.10.207 7000 Trying 10.96.10.207... Connected to 10.96.10.207. Escape character is '^]'. quit Connection closed by foreign host. I see the sam

Re: Setting up a multi-node cluster

2013-08-28 Thread Andrey Ilinykh
To be sure ports are open try to connect from one node to another: telnet 7000 try all ports. Andrey On Wed, Aug 28, 2013 at 10:41 PM, Dinesh wrote: > Hi John, > > I had my firewall disabled in both the nodes > To make sure. I checked it > # rcSuSEfirewall2 status > Checking the status of

Re: Setting up a multi-node cluster

2013-08-28 Thread Dinesh
Hi John, I had my firewall disabled in both the nodes To make sure. I checked it # rcSuSEfirewall2 status Checking the status of SuSEfirewall2 unused if it's, on it says running Please suggest the further steps, where to look and t

How many seed nodes should I use?

2013-08-28 Thread Ike Walker
What is the best practice for how many seed nodes to have in a Cassandra cluster? I remember reading a recommendation of 2 seeds per datacenter in Datastax documentation for 0.7, but I'm interested to know what other people are doing these days, especially in AWS. I'm running a cluster of 12 no

Re: Setting up a multi-node cluster

2013-08-28 Thread John Pyeatt
Have you verified that your firewall is configured for the cassandra traffic. At the very least you need to make certain the following ports are open between nodes: 7000, 7001, 7199, 9160, 61620 and 61621. On Wed, Aug 28, 2013 at 12:36 AM, Dinesh wrote: > In my case rpc_address in both the node

Re: configuring read write quorums in cassandra

2013-08-28 Thread Muntasir Raihan Rahman
Thanks! Muntasir. On Wed, Aug 28, 2013 at 3:52 PM, Robert Coli wrote: > On Wed, Aug 28, 2013 at 1:48 PM, Muntasir Raihan Rahman > wrote: >> >> Let us say I set read consistency level = ONE, and I am running the >> system for a while. Then I want to change the read consistency level >> to TWO so

Re: configuring read write quorums in cassandra

2013-08-28 Thread Muntasir Raihan Rahman
Thanks for clarifying that! Muntasir. On Wed, Aug 28, 2013 at 3:51 PM, Andrey Ilinykh wrote: > Each query has its own consistency level. It has nothing to do with > cassandra. > > > On Wed, Aug 28, 2013 at 1:48 PM, Muntasir Raihan Rahman > wrote: >> >> Sorry, let me clarify. >> >> Let us say I

Re: configuring read write quorums in cassandra

2013-08-28 Thread Robert Coli
On Wed, Aug 28, 2013 at 1:48 PM, Muntasir Raihan Rahman < muntasir.rai...@gmail.com> wrote: > Let us say I set read consistency level = ONE, and I am running the > system for a while. Then I want to change the read consistency level > to TWO so that reads now wait to hear back from 2 replicas inst

Re: configuring read write quorums in cassandra

2013-08-28 Thread Andrey Ilinykh
Each query has its own consistency level. It has nothing to do with cassandra. On Wed, Aug 28, 2013 at 1:48 PM, Muntasir Raihan Rahman < muntasir.rai...@gmail.com> wrote: > Sorry, let me clarify. > > Let us say I set read consistency level = ONE, and I am running the > system for a while. Then I

Re: configuring read write quorums in cassandra

2013-08-28 Thread Muntasir Raihan Rahman
Sorry, let me clarify. Let us say I set read consistency level = ONE, and I am running the system for a while. Then I want to change the read consistency level to TWO so that reads now wait to hear back from 2 replicas instead of 1 before responding to the client. I want to change this consistency

Re: configuring read write quorums in cassandra

2013-08-28 Thread Andrey Ilinykh
What do you mean "to change the cassandra read and write quorums"? Quorum is quorum, 2 of 3 for example. What do you want to change? Andrey On Wed, Aug 28, 2013 at 1:33 PM, Muntasir Raihan Rahman < muntasir.rai...@gmail.com> wrote: > Hello, > > Are there any tools (e.g like nodetool) that could

configuring read write quorums in cassandra

2013-08-28 Thread Muntasir Raihan Rahman
Hello, Are there any tools (e.g like nodetool) that could be used to change the cassandra read and write quorums at run-time? In general what is a good strategy of changing these system parameters while cassandra is running? Any pointers could be useful! Thanks Muntasir.

Re: CQL: Prepared statements

2013-08-28 Thread Alex Popescu
On Wed, Aug 28, 2013 at 4:01 AM, Vassilis Bekiaris < bekiar...@iconplatforms.com> wrote: > Hi, > > I think the introductory paragraphs in the Java Driver documentation [1] > provide good justification on the use of prepared statements: > > " ... but you can also use prepared statements, which onl

cassandra-stress Daemon Mode

2013-08-28 Thread Adam H
Greetings. I'm just trying the cassandra-stressd daemon for the first time in 1.2.8. When I try to start a stress session on it, I'm getting an exception on startup of cassandra-stress: %> bin/cassandra-stress --nodesfile=nodes --strategy-properties="datacenter1:3" --replication-strategy=NetworkT

Re: How to perform range queries efficiently?

2013-08-28 Thread Vivek Mishra
Create a column family of compositeType (or PRIMARY KEY) as (user_id,age, salary). Then you will be able to query use eq operator over partition key and as well over clustering key: You may also exclude salary as a secondary index rather than part of cluster key(e.g. age,salary) I am sure based

PendingTasks: What does it mean inside Cassandra?

2013-08-28 Thread Girish Kumar
Hi, I have this problem of lots of pending tasks in Cassandra when I run Cassandra with higher load. (Cassandra Stress threads set to 384). The tpstat output shows high number Pending tasks > 700. When high number of Pending tasks are showing up what it means to cassandra? What are the reasons f

Re: How to perform range queries efficiently?

2013-08-28 Thread Sávio Teles
I can populate again. We are modelling the data yet! Tks. 2013/8/28 Vivek Mishra > Just saw that you already have data populated, so i guess modifying for > composite key may not work for you. > > -Vivek > > > On Tue, Aug 27, 2013 at 11:55 PM, Sávio Teles > wrote: > >> Vivek, using a composite

Re: CQL: Prepared statements

2013-08-28 Thread Jorge Bay Gondra
Nice!!! Thanks! 2013/8/28 Vassilis Bekiaris > Hi, > > I think the introductory paragraphs in the Java Driver documentation [1] > provide good justification on the use of prepared statements: > > " ... but you can also use prepared statements, which only need to be > parsed once by the cluster,

Re: CQL: Prepared statements

2013-08-28 Thread Vassilis Bekiaris
Hi, I think the introductory paragraphs in the Java Driver documentation [1] provide good justification on the use of prepared statements: " ... but you can also use prepared statements, which only need to be parsed once by the cluster, and then bind values to the variables and execute the bound

CQL: Prepared statements

2013-08-28 Thread Jorge Bay Gondra
Hi, I'm developing the Node.js CQL Driver and I've just finished implementing prepared statements through the binary protocol... I would like to provide driver users some guidance (use prepared queries when X / use normal queries when Y): Is there a

Re: how can i get the column value? Need help!.. cassandra 1.28 and pig 0.11.1

2013-08-28 Thread Miguel Angel Martin junquera
hi: I can not understand why the schema is define like *"id:chararray,age:int,title:chararray" and it does not define like tuples or bag tuples, if we have pair key-values columns* * * * * *I try other time to change schema but it does not work.* * * *any ideas ...* * * *perhaps, is the issue