Return-Path: X-Original-To: apmail-cassandra-user-archive@www.apache.org Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id BA095C489 for ; Wed, 13 Jun 2012 09:08:29 +0000 (UTC) Received: (qmail 9877 invoked by uid 500); 13 Jun 2012 09:08:27 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 9710 invoked by uid 500); 13 Jun 2012 09:08:27 -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 9695 invoked by uid 99); 13 Jun 2012 09:08:26 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 09:08:26 +0000 X-ASF-Spam-Status: No, hits=3.3 required=5.0 tests=FSL_RCVD_USER,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,TRACKER_ID X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a44.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 13 Jun 2012 09:08:20 +0000 Received: from homiemail-a44.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTP id 99D7D11805C for ; Wed, 13 Jun 2012 02:07:57 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; q=dns; s=thelastpickle.com; b=rZEhNo/3rz cDyy4aGx+UMrHvOUn97gtsOB45QcgSxp7n/an+0LU0o/rQtc+YvbBL92gq7crV/J rD3Fb9ChftnQSpnCC4ib83rAcqrfzoE3moL05SoodJCJQT5Wsdqyh5m6obXFAmZy s2g0QBsSq2C3oKCNmR3E8EPblv0UP2Saw= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=from :mime-version:content-type:subject:date:in-reply-to:to :references:message-id; s=thelastpickle.com; bh=O6QRIfS/tLnt4bUQ XrgnHStEBqI=; b=178PksZHSRuC5yjPc5zaO5Vjd164S/CN+2jV8t6Es5p5kXws jYjDGr6rXB5umWNnsTWE9A7XXv89gyGOy2SrIQE1pW388BhhSeFzs10lm4p23o00 9k1MyxJ0DhnqC040pyDTRLTaKVoeTyqdYPqwou6uLBR/bFbOhDq4Gv0rY40= Received: from [172.16.1.4] (unknown [203.86.207.101]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a44.g.dreamhost.com (Postfix) with ESMTPSA id 9BCBF118058 for ; Wed, 13 Jun 2012 02:07:55 -0700 (PDT) From: aaron morton Mime-Version: 1.0 (Apple Message framework v1278) Content-Type: multipart/alternative; boundary="Apple-Mail=_9B825A31-DEF3-46C6-9C0E-134FB863AF5E" Subject: Re: Hector code not running when replication factor set to 2 Date: Wed, 13 Jun 2012 21:07:51 +1200 In-Reply-To: <7073291669E5764EB68B5914AC4204744E05264E83@AUSP01VMBX11.collaborationhost.net> To: user@cassandra.apache.org References: <7073291669E5764EB68B5914AC4204744E05142877@AUSP01VMBX11.collaborationhost.net> <1CF0E7CB-ED34-4F2E-85DF-7AF3B875E72A@thelastpickle.com> <7073291669E5764EB68B5914AC4204744E051EC89D@AUSP01VMBX11.collaborationhost.net> <7073291669E5764EB68B5914AC4204744E05264E83@AUSP01VMBX11.collaborationhost.net> Message-Id: <0DFC40EE-E43B-4544-8308-D51ECA7F7288@thelastpickle.com> X-Mailer: Apple Mail (2.1278) X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Mail=_9B825A31-DEF3-46C6-9C0E-134FB863AF5E Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii It looks like the request used a CL higher than ONE.=20 Cheers ----------------- Aaron Morton Freelance Developer @aaronmorton http://www.thelastpickle.com On 13/06/2012, at 6:49 PM, Prakrati Agrawal wrote: > The error stack is as follows: > Exception in thread "main" java.lang.reflect.InvocationTargetException > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > at = sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:= 57) > at = sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorIm= pl.java:43) > at java.lang.reflect.Method.invoke(Method.java:616) > at = org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.j= ava:58) > Caused by: me.prettyprint.hector.api.exceptions.HUnavailableException: = : May not be enough replicas present to handle consistency level. > at = me.prettyprint.cassandra.service.ExceptionsTranslatorImpl.translate(Except= ionsTranslatorImpl.java:59) > at = me.prettyprint.cassandra.service.KeyspaceServiceImpl$7.execute(KeyspaceSer= viceImpl.java:285) > at = me.prettyprint.cassandra.service.KeyspaceServiceImpl$7.execute(KeyspaceSer= viceImpl.java:268) > at = me.prettyprint.cassandra.service.Operation.executeAndSetResult(Operation.j= ava:103) > at = me.prettyprint.cassandra.connection.HConnectionManager.operateWithFailover= (HConnectionManager.java:258) > at = me.prettyprint.cassandra.service.KeyspaceServiceImpl.operateWithFailover(K= eyspaceServiceImpl.java:131) > at = me.prettyprint.cassandra.service.KeyspaceServiceImpl.getSlice(KeyspaceServ= iceImpl.java:289) > at = me.prettyprint.cassandra.model.thrift.ThriftSliceQuery$1.doInKeyspace(Thri= ftSliceQuery.java:53) > at = me.prettyprint.cassandra.model.thrift.ThriftSliceQuery$1.doInKeyspace(Thri= ftSliceQuery.java:49) > at = me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMe= asure(KeyspaceOperationCallback.java:20) > at = me.prettyprint.cassandra.model.ExecutingKeyspace.doExecute(ExecutingKeyspa= ce.java:85) > at = me.prettyprint.cassandra.model.thrift.ThriftSliceQuery.execute(ThriftSlice= Query.java:48) > at = me.prettyprint.cassandra.service.ColumnSliceIterator.hasNext(ColumnSliceIt= erator.java:88) > at = com.musigma.hectortest.HectorUtilTest.getAllColumns(HectorUtil.java:70) > at com.musigma.hectortest.HectorUtil.main(HectorUtil.java:168) > ... 5 more > Caused by: UnavailableException() > at = org.apache.cassandra.thrift.Cassandra$get_slice_result.read(Cassandra.java= :7204) > at = org.apache.thrift.TServiceClient.receiveBase(TServiceClient.java:78) > at = org.apache.cassandra.thrift.Cassandra$Client.recv_get_slice(Cassandra.java= :543) > at = org.apache.cassandra.thrift.Cassandra$Client.get_slice(Cassandra.java:527)= > at = me.prettyprint.cassandra.service.KeyspaceServiceImpl$7.execute(KeyspaceSer= viceImpl.java:273) > ... 18 more > =20 > The node tool ring from the node I connected to looks like : > Address DC Rack Status State Load = Effective-Owership Token =20 > = 85070591730234615865843651857942052864 =20 > 162.192.100.16 datacenter1 rack1 Up Normal 239.82 MB = 100.00% 0 =20 > 162.192.100.9 datacenter1 rack1 Down Normal 239.81 MB = 100.00% 85070591730234615865843651857942052864 > =20 > I did not find any error in the logs generated by Cassandra on the = running machine. > =20 > Please help me > =20 > Thanks and Regards > =20 > Prakrati > =20 > From: aaron morton [mailto:aaron@thelastpickle.com]=20 > Sent: Tuesday, June 12, 2012 2:42 PM > To: user@cassandra.apache.org > Subject: Re: Hector code not running when replication factor set to 2 > =20 > What was the exact error stack you got ? > =20 > What does node tool ring look look from the node you connected to? > =20 > Did you notice any errors in the logs on the machine you connected to = ? > =20 > =20 > Cheers > =20 > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > =20 > On 12/06/2012, at 8:41 PM, Prakrati Agrawal wrote: >=20 >=20 > I am using the consistency level one and replication factor 2 > =20 > Thanks > Prakrati > From: aaron morton [mailto:aaron@thelastpickle.com]=20 > Sent: Tuesday, June 12, 2012 2:12 PM > To: user@cassandra.apache.org > Subject: Re: Hector code not running when replication factor set to 2 > =20 > What consistency level and replication factor were you using ? > =20 > UnavailableException is thrown when less the consistency level nodes = are UP.=20 > =20 > Cheers > =20 > ----------------- > Aaron Morton > Freelance Developer > @aaronmorton > http://www.thelastpickle.com > =20 > On 11/06/2012, at 10:19 PM, Prakrati Agrawal wrote: >=20 >=20 >=20 > Dear all > =20 > I had a 2 node cluster with replication factor set to 1. Then I = changed the replication factor to 2 and brought down one node so that = only 1 node was up and running. Then I ran my Hector code on the running = node. But it gave me Unavailable Exception. I also had a Thrift code = which ran successfully. I am confused as to why the Hector code did not = run. Did I miss something? Please help me. > =20 > Thanks and Regards > Prakrati > =20 > =20 > This email message may contain proprietary, private and confidential = information. The information transmitted is intended only for the = person(s) or entities to which it is addressed. Any review, = retransmission, dissemination or other use of, or taking of any action = in reliance upon, this information by persons or entities other than the = intended recipient is prohibited and may be illegal. If you received = this in error, please contact the sender and delete the message from = your system. >=20 > Mu Sigma takes all reasonable steps to ensure that its electronic = communications are free from viruses. However, given Internet = accessibility, the Company cannot accept liability for any virus = introduced by this e-mail or any attachment and you are advised to use = up-to-date virus checking software. > =20 > =20 > This email message may contain proprietary, private and confidential = information. The information transmitted is intended only for the = person(s) or entities to which it is addressed. Any review, = retransmission, dissemination or other use of, or taking of any action = in reliance upon, this information by persons or entities other than the = intended recipient is prohibited and may be illegal. If you received = this in error, please contact the sender and delete the message from = your system. >=20 > Mu Sigma takes all reasonable steps to ensure that its electronic = communications are free from viruses. However, given Internet = accessibility, the Company cannot accept liability for any virus = introduced by this e-mail or any attachment and you are advised to use = up-to-date virus checking software. > =20 >=20 > This email message may contain proprietary, private and confidential = information. The information transmitted is intended only for the = person(s) or entities to which it is addressed. Any review, = retransmission, dissemination or other use of, or taking of any action = in reliance upon, this information by persons or entities other than the = intended recipient is prohibited and may be illegal. If you received = this in error, please contact the sender and delete the message from = your system. >=20 > Mu Sigma takes all reasonable steps to ensure that its electronic = communications are free from viruses. However, given Internet = accessibility, the Company cannot accept liability for any virus = introduced by this e-mail or any attachment and you are advised to use = up-to-date virus checking software. --Apple-Mail=_9B825A31-DEF3-46C6-9C0E-134FB863AF5E Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=us-ascii It looks like the request used a CL higher than = ONE. 

Cheers

http://www.thelastpickle.com

On 13/06/2012, at 6:49 PM, Prakrati Agrawal = wrote:

The error stack is as = follows:
        at = me.prettyprint.cassandra.model.thrift.ThriftSliceQuery$1.doInKeyspace(Thri= ftSliceQuery.java:49)
        at = me.prettyprint.cassandra.model.KeyspaceOperationCallback.doInKeyspaceAndMe= asure(KeyspaceOperationCallback.java:20)
Caused by: = UnavailableException()
        at = org.apache.cassandra.thrift.Cassandra$get_slice_result.read(Cassandra.java= :7204)
The = node tool ring from the node I connected to looks like = :
162.192.100.16  = datacenter1 rack1       = Up     Normal  239.82 = MB       = 100.00%           &= nbsp; = 0            &= nbsp;           &nb= sp;            = ;     
162.192.100.9   = datacenter1 rack1       Down   = Normal  239.81 MB       = 100.00%           &= nbsp; 85070591730234615865843651857942052864
I did = not find any error in the logs generated by Cassandra on the running = machine.
 
From: aaron morton = [mailto:aaron@thelastpickle.com] 
Sent: Tuesday, June 12, 2012 2:42 = PM
To: user@cassandra.apache.orgSubject: Re: = Hector code not running when replication factor set to = 2
What was the exact error stack = you got ?
What does node tool ring = look look from the node you connected = to?
Did you notice any errors = in the logs on the machine you connected to = ?
Aaron = Morton
Freelance = Developer
@aaronmorton

This email message may contain proprietary, = private and confidential information. The information transmitted is = intended only for the person(s) or entities to which it is addressed. = Any review, retransmission, dissemination or other use of, or taking of = any action in reliance upon, this information by persons or entities = other than the intended recipient is prohibited and may be illegal. If = you received this in error, please contact the sender and delete the = message from your system.

Mu Sigma takes all reasonable steps to = ensure that its electronic communications are free from viruses. = However, given Internet accessibility, the Company cannot accept = liability for any virus introduced by this e-mail or any attachment and = you are advised to use up-to-date virus checking = software.

This email message may contain proprietary, = private and confidential information. The information transmitted is = intended only for the person(s) or entities to which it is addressed. = Any review, retransmission, dissemination or other use of, or taking of = any action in reliance upon, this information by persons or entities = other than the intended recipient is prohibited and may be illegal. If = you received this in error, please contact the sender and delete the = message from your system.

Mu Sigma takes all reasonable steps to = ensure that its electronic communications are free from viruses. = However, given Internet accessibility, the Company cannot accept = liability for any virus introduced by this e-mail or any attachment and = you are advised to use up-to-date virus checking software.
This email message may contain proprietary, = private and confidential information. The information transmitted is = intended only for the person(s) or entities to which it is addressed. = Any review, retransmission, dissemination or other use of, or taking of = any action in reliance upon, this information by persons or entities = other than the intended recipient is prohibited and may be illegal. If = you received this in error, please contact the sender and delete the = message from your system.

Mu Sigma takes all reasonable steps to = ensure that its electronic communications are free from viruses. = However, given Internet accessibility, the Company cannot accept = liability for any virus introduced by this e-mail or any attachment and = you are advised to use up-to-date virus checking = software.

= --Apple-Mail=_9B825A31-DEF3-46C6-9C0E-134FB863AF5E--