Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 38485 invoked from network); 27 Jun 2010 10:53:49 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 27 Jun 2010 10:53:49 -0000 Received: (qmail 91871 invoked by uid 500); 27 Jun 2010 10:53:48 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 91570 invoked by uid 500); 27 Jun 2010 10:53:44 -0000 Mailing-List: contact user-help@cassandra.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@cassandra.apache.org Delivered-To: mailing list user@cassandra.apache.org Received: (qmail 91562 invoked by uid 99); 27 Jun 2010 10:53:42 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jun 2010 10:53:42 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of atul.gosain@gmail.com designates 209.85.212.44 as permitted sender) Received: from [209.85.212.44] (HELO mail-vw0-f44.google.com) (209.85.212.44) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 27 Jun 2010 10:53:36 +0000 Received: by vws7 with SMTP id 7so285706vws.31 for ; Sun, 27 Jun 2010 03:53:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=if+kz7GYY/+sxDfSnJ145bKU1e1/5nv8b6WqtTDaVQQ=; b=r7BpY/ytq08KBb516pjolj3vh3bmCYbMpS1p5u/JnDxl8O9MZ6VJKxdd4gu2ejXu3L Nq8YnkoNDPo5ZwPnJFHbWv1dGDB3/JZhtIceirn24pnz2rCARuIC0y1mE/oxK3rqsl2i mHgOtbxiNByhANAUyH/4jOjyL7mXCrhKiSeR4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=XkSImg8DUHaJwa6wYjNMHynPVX6ZdsRTNr+F5cNIMClHv0SXFd4kOdCjkM4tUVMryi 6g+8+fbuIVXf8NJPMglr3CQuglz4bhYLd527ilB5jqojnfDvk9fkqIv8b6p9mDEBKIkF 8B6p1kNh/6bgeM9xRuSeUq/NCrDQYX9lv4zVY= MIME-Version: 1.0 Received: by 10.220.126.130 with SMTP id c2mr2022082vcs.25.1277635995349; Sun, 27 Jun 2010 03:53:15 -0700 (PDT) Received: by 10.220.71.75 with HTTP; Sun, 27 Jun 2010 03:53:15 -0700 (PDT) Date: Sun, 27 Jun 2010 16:23:15 +0530 Message-ID: Subject: Hector Client Failover errors From: Atul Gosain To: user@cassandra.apache.org Content-Type: multipart/alternative; boundary=0016e68ee95aa7b37d048a00cf6e --0016e68ee95aa7b37d048a00cf6e Content-Type: text/plain; charset=ISO-8859-1 I am trying to insert the data using hector client. Using only one host in the pool ie. localhost. like as follows CassandraClientPool pool = CassandraClientPoolFactory.INSTANCE.get(); client = pool.borrowClient("localhost", 9160); global = client.getKeyspace(keyspace, ConsistencyLevel.ONE); After some(5-6) iterations of insertions of data (every 5 min insertion of about 40 MB of data), the program starts emitting this 10/06/27 09:55:28 WARN service.FailoverOperator: Got a TTransportException from localhost. Num of retries: 1 10/06/27 09:55:28 INFO service.FailoverOperator: Skipping to next host. Current host is: localhost 10/06/27 09:55:28 INFO service.FailoverOperator: Skipped host. New host is: localhost I couldnt understand the reason for this, when im using only device in the pool. If i remove the ConsistencyLevel.ONE, then the error starts from the first iteration itself. The same program through Thrift runs without any problems. Actually, i just modified the thrift program and replaced the calls to thrift api to corresponding Hector calls. Thanks Atul --0016e68ee95aa7b37d048a00cf6e Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable I am trying to insert the data using hector client. Using only one host in = the pool ie. localhost. like as follows
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0= =A0 CassandraClientPool pool =3D CassandraClientPoolFactory.INSTANCE.get();=
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 client =3D pool.borrowClient("lo= calhost", 9160);
=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0=A0 global =3D client.getKeyspace(keyspace, C= onsistencyLevel.ONE);


After some(5-6) iterations of insertions o= f data (every 5 min insertion of about 40 MB of data), the program starts e= mitting this

10/06/27 09:55:28 WARN service.FailoverOperator: Got a TTransportException = from localhost. Num of retries: 1
10/06/27 09:55:28 INFO service.Failove= rOperator: Skipping to next host. Current host is: localhost
10/06/27 09= :55:28 INFO service.FailoverOperator: Skipped host. New host is: localhost<= br>
I couldnt understand the reason for this, when im using only device in = the pool. If i remove the ConsistencyLevel.ONE, then the error starts from = the first iteration itself.

The same program through Thrift runs wi= thout any problems. Actually, i just modified the thrift program and replac= ed the calls to thrift api to corresponding Hector calls.

Thanks
Atul
--0016e68ee95aa7b37d048a00cf6e--