From user-return-10538-apmail-cassandra-user-archive=cassandra.apache.org@cassandra.apache.org Tue Nov 16 01:37:08 2010 Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 10985 invoked from network); 16 Nov 2010 01:37:08 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Nov 2010 01:37:08 -0000 Received: (qmail 42907 invoked by uid 500); 16 Nov 2010 01:37:37 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 42885 invoked by uid 500); 16 Nov 2010 01:37:37 -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 42877 invoked by uid 99); 16 Nov 2010 01:37:37 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 01:37:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,MIME_QP_LONG_LINE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: local policy) Received: from [208.113.200.5] (HELO homiemail-a49.g.dreamhost.com) (208.113.200.5) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 16 Nov 2010 01:37:29 +0000 Received: from homiemail-a49.g.dreamhost.com (localhost [127.0.0.1]) by homiemail-a49.g.dreamhost.com (Postfix) with ESMTP id EEDBF5E006B for ; Mon, 15 Nov 2010 17:37:06 -0800 (PST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=thelastpickle.com; h=to:from :subject:date:message-id:content-type:mime-version:in-reply-to; q=dns; s=thelastpickle.com; b=ZEeQtVHhgKm38eiz6qgl+rGSY+uoMcuWh OJcSF2B2pQNMgejEVN2VpWVdlkNvlZnsxV2pcX+DW7APvYskXOiJhsGcJJhs0ELo e7tH+NZKmhk0N6l1yrWB0n0BffYZWYI5ZGLA9Dytfvsx42Ww3E+XobXn4xKytax9 TockBP0MTo= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=thelastpickle.com; h=to :from:subject:date:message-id:content-type:mime-version: in-reply-to; s=thelastpickle.com; bh=vgRPiJJ8JP8B6tx9NgITMS7aswQ =; b=QHtYga8d2l8Rk8oca2KQVMZ2YV6GxL0ZxTY6DkMCJI7oazLZhxtFwBrvYgZ 9namzt3+weK5cyQsRqCRl6Irfc7jGDJ0v1ZX/XOU92V8lG3tiZQHKB0YOOJoph25 g3/wqpmblO7beIlSeoGgqkLd0fTzaQo669QCNXNC7GSb6gTg= Received: from localhost (webms.mac.com [17.148.16.116]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: aaron@thelastpickle.com) by homiemail-a49.g.dreamhost.com (Postfix) with ESMTPSA id DC3705E0069 for ; Mon, 15 Nov 2010 17:37:06 -0800 (PST) To: user@cassandra.apache.org From: Aaron Morton Subject: Re: using SimpleAuthenticator is not working Date: Tue, 16 Nov 2010 01:37:05 GMT X-Mailer: MobileMe Mail (1C3207) Message-id: <3fa4e7f2-1320-c7b0-de54-c8b33111c1f3@me.com> Content-Type: multipart/alternative; boundary=Apple-Webmail-42--fffdb9e9-b872-6ec0-f2bb-c6920c39d304 MIME-Version: 1.0 In-Reply-To: <4CE1D833.2090407@pdf.com> X-Virus-Checked: Checked by ClamAV on apache.org --Apple-Webmail-42--fffdb9e9-b872-6ec0-f2bb-c6920c39d304 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=ISO-8859-1; format=flowed Can you try using the command line cassandra-cli tool ? fire it up and loo= k at the online help, if you pass a user name and password to the =A0"use"= statement it will perform a login after setting the keyspace for the conn= ection.=A0=0A=0ATry testing the login that way, and see what is logged ser= ver side (with logging at DEBUG).=A0=0A=0AAlso, what client are you using = ?=0A=0AAaron=0A=0A=0A=0AOn 16 Nov, 2010,at 02:02 PM, Alaa Zubaidi wrote:=0A=0AI removed the exception handling and It seems t= hat the login() is hanging?=0A=0AOn 11/15/2010 1:36 PM, Eric Evans wrote:=0A= > On Mon, 2010-11-15 at 12:26 -0800, Alaa Zubaidi wrote:=0A>> I set author= ity to SimpleAuthority and log4j.rootLogger=3DDEBUG,stdout,R=0A>>=0A>> and= its still the same, the error in my application is=0A>> $batch_mutate_res= ult.read(Cassandra.java:16477)=0A>> InvalidRequestException(why: you have = not logged in)=0A>>=0A>> and in the system.log after DEBUG ...... Dissemin= ating load info...=0A>> DEBUG ...... batch_mutate=0A>>=0A>> There is no me= ntion to the login() and set_keyspace() methods.=0A>> and no other informa= tion..=0A> The login() method will either raise an AuthenticationException= in the=0A> client application if the login failed, or log something like = "logged=0A> in: #" if it succeeded.=0A>=0A= > Either you're not actually calling login(), or your code is trapping the= =0A> exception and obscuring the failure.=0A>=0A>=0A=0A-- =0AAlaa Zubaidi=0A= PDF Solutions, Inc.=0A333 West San Carlos Street, Suite 700=0ASan Jose, CA= 95110 USA=0ATel: 408-283-5639 (or 408-280-7900 x5639)=0Afax: 408-938-6479= =0Aemail: alaa.zubaidi@pdf.com=0A=0A=0A --Apple-Webmail-42--fffdb9e9-b872-6ec0-f2bb-c6920c39d304 Content-Type: multipart/related; type="text/html"; boundary=Apple-Webmail-86--fffdb9e9-b872-6ec0-f2bb-c6920c39d304 --Apple-Webmail-86--fffdb9e9-b872-6ec0-f2bb-c6920c39d304 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=ISO-8859-1;
Can you try using the command line cassandra-cli tool ? fire it up an= d look at the online help, if you pass a user name and password to the &nb= sp;"use" statement it will perform a login after setting the keyspace for = the connection. 

Try testing the login that = way, and see what is logged server side (with logging at DEBUG). 

Also, what client are you using ?

Aaron



On 16 Nov, 2010,at 02:02 PM,= Alaa Zubaidi <alaa.zubaidi@pdf.com> wrote:

I removed the exception h= andling and It seems that the login() is hanging?
=0A
=0AOn 11/15/20= 10 1:36 PM, Eric Evans wrote:
=0A> On Mon, 2010-11-15 at 12:26 -0800= , Alaa Zubaidi wrote:
=0A>> I set authority to SimpleAuthority an= d log4j.rootLogger=3DDEBUG,stdout,R
=0A>>
=0A>> and its = still the same, the error in my application is
=0A>> $batch_mutat= e_result.read(Cassandra.java:16477)
=0A>> InvalidRequestException= (why: you have not logged in)
=0A>>
=0A>> and in the sys= tem.log after DEBUG ...... Disseminating load info...
=0A>> DEBUG= ...... batch_mutate
=0A>>
=0A>> There is no mention to = the login() and set_keyspace() methods.
=0A>> and no other inform= ation..
=0A> The login() method will either raise an AuthenticationE= xception in the
=0A> client application if the login failed, or log = something like "logged
=0A> in: #<User username groups=3Dgroupnam= e>" if it succeeded.
=0A>
=0A> Either you're not actually c= alling login(), or your code is trapping the
=0A> exception and obsc= uring the failure.
=0A>
=0A>
=0A
=0A--
=0AAlaa Zubai= di
=0APDF Solutions, Inc.
=0A333 West San Carlos Street, Suite 700=0ASan Jose, CA 95110 USA
=0ATel: 408-283-5639 (or 408-280-7900 x563= 9)
=0Afax: 408-938-6479
=0Aemail: alaa.zubaidi@pdf.com
=0A
=0A=
=0A
--Apple-Webmail-86--fffdb9e9-b872-6ec0-f2bb-c6920c39d304-- --Apple-Webmail-42--fffdb9e9-b872-6ec0-f2bb-c6920c39d304--