You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cassandra.apache.org by Michael Vaknine <mi...@citypath.com> on 2012/01/09 13:47:08 UTC

Using quorum to read data

Hi,

 

I have a 4 node cluster 1.0.3 with replication_factor = 3.

QUORUM: Returns the record with the most recent timestamp once a quorum
(51%+) of replicas has responded. It also triggers a read repair

 

I am using QUORUM to read and write data so I assume that if I get response
from 3 servers I sould be ok. but every time when 1 node is down I get
timeout when I try to read data

 

2012-01-09 11:58:33,325 WARN
[me.prettyprint.cassandra.connection.CassandraHostRetryService] - <Downed
192.168.80.31(192.168.80.31):9160 host still appears to be down: Unable to
open transport to 192.168.80.31(192.168.80.31):9160 ,
java.net.ConnectException: Connection refused: connect>

What am I missing?

 

Thanks

Michael

 


Re: Using quorum to read data

Posted by Jérémy SEVELLEC <js...@gmail.com>.
Hi,

I think it's what you need :

http://rantav.github.com/hector/build/html/content/services.html


Jérémy

2012/1/10 Michael Vaknine <mi...@citypath.com>

> Thank you for your reply
> Do you know if there are documentation of hector I can read to understand
> this behavior?
>
> Thanks
> Michael
>
>
> -----Original Message-----
> From: scode@scode.org [mailto:scode@scode.org] On Behalf Of Peter Schuller
> Sent: Monday, January 09, 2012 5:29 PM
> To: dev@cassandra.apache.org
> Subject: Re: Using quorum to read data
>
> > 2012-01-09 11:58:33,325 WARN
> > [me.prettyprint.cassandra.connection.CassandraHostRetryService] - <Downed
> > 192.168.80.31(192.168.80.31):9160 host still appears to be down: Unable
> to
> > open transport to 192.168.80.31(192.168.80.31):9160 ,
> > java.net.ConnectException: Connection refused: connect>
> >
> > What am I missing?
>
> That's not a timeout, but a failure to connect. Did you give Hector
> all of the nodes in the cluster or enable auto-discovery? If the above
> is the only error you see, it seems likely that you just need to
> configure your client to talk to the entire cluster.
>
> (I don't remember off hand how to tell hector to use auto-discovery.)
>
> --
> / Peter Schuller (@scode, http://worldmodscode.wordpress.com)
>
>


-- 
Jérémy

RE: Using quorum to read data

Posted by Michael Vaknine <mi...@citypath.com>.
Thank you for your reply
Do you know if there are documentation of hector I can read to understand this behavior?

Thanks
Michael


-----Original Message-----
From: scode@scode.org [mailto:scode@scode.org] On Behalf Of Peter Schuller
Sent: Monday, January 09, 2012 5:29 PM
To: dev@cassandra.apache.org
Subject: Re: Using quorum to read data

> 2012-01-09 11:58:33,325 WARN
> [me.prettyprint.cassandra.connection.CassandraHostRetryService] - <Downed
> 192.168.80.31(192.168.80.31):9160 host still appears to be down: Unable to
> open transport to 192.168.80.31(192.168.80.31):9160 ,
> java.net.ConnectException: Connection refused: connect>
>
> What am I missing?

That's not a timeout, but a failure to connect. Did you give Hector
all of the nodes in the cluster or enable auto-discovery? If the above
is the only error you see, it seems likely that you just need to
configure your client to talk to the entire cluster.

(I don't remember off hand how to tell hector to use auto-discovery.)

-- 
/ Peter Schuller (@scode, http://worldmodscode.wordpress.com)


Re: Using quorum to read data

Posted by Peter Schuller <pe...@infidyne.com>.
> 2012-01-09 11:58:33,325 WARN
> [me.prettyprint.cassandra.connection.CassandraHostRetryService] - <Downed
> 192.168.80.31(192.168.80.31):9160 host still appears to be down: Unable to
> open transport to 192.168.80.31(192.168.80.31):9160 ,
> java.net.ConnectException: Connection refused: connect>
>
> What am I missing?

That's not a timeout, but a failure to connect. Did you give Hector
all of the nodes in the cluster or enable auto-discovery? If the above
is the only error you see, it seems likely that you just need to
configure your client to talk to the entire cluster.

(I don't remember off hand how to tell hector to use auto-discovery.)

-- 
/ Peter Schuller (@scode, http://worldmodscode.wordpress.com)