Try using the cassandra hector client.

It has failover and load balancing built in.

http://github.com/rantav/hector

<http://github.com/rantav/hector>Tom


On Tue, Mar 16, 2010 at 2:30 PM, Sonny Heer <sonnyh...@gmail.com> wrote:

> How can I accomplish this?
>
> The way I'm doing it now it is creating a TSocket connection using a
> static IP of one of the boxes on Cassandra:
>        TTransport tr = new TSocket(host, port.intValue());
>        TProtocol proto = new TBinaryProtocol(tr);
>        Cassandra.Client client = new Cassandra.Client(proto);
>        tr.open();
>
> With a larger cluster I would imagine there is another preferred
> solution with no single point of failure (e.g. that one box  goes
> down).
>



-- 
Tom Chen
Software Architect
GOGII, Inc
t...@gogii.net
650-468-6318

Reply via email to