Return-Path: Delivered-To: apmail-cassandra-user-archive@www.apache.org Received: (qmail 60912 invoked from network); 17 Nov 2010 21:03:16 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 17 Nov 2010 21:03:16 -0000 Received: (qmail 99675 invoked by uid 500); 17 Nov 2010 21:03:43 -0000 Delivered-To: apmail-cassandra-user-archive@cassandra.apache.org Received: (qmail 99588 invoked by uid 500); 17 Nov 2010 21:03:43 -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 99580 invoked by uid 99); 17 Nov 2010 21:03:43 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 21:03:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [216.207.44.48] (HELO postrelay-1.pdf.com) (216.207.44.48) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 17 Nov 2010 21:03:37 +0000 Received: from domo-sjc-001.pdf.com (domo-sjc-001.pdf.com [10.10.9.180]) by postrelay-1.pdf.com (Switch-3.2.5/Switch-3.2.5) with ESMTP id oAHKxW6C022823 for ; Wed, 17 Nov 2010 12:59:33 -0800 Received: from [127.0.0.1] (sjc-10-10-11-94.pdf.com [10.10.11.94]) by domo-sjc-001.pdf.com (8.13.8/8.13.8) with ESMTP id oAHL3G9E031491 for ; Wed, 17 Nov 2010 13:03:17 -0800 Message-ID: <4CE4431A.1030806@pdf.com> Date: Wed, 17 Nov 2010 13:03:22 -0800 From: Alaa Zubaidi User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.12) Gecko/20101027 Lightning/1.0b2 Thunderbird/3.1.6 MIME-Version: 1.0 To: user@cassandra.apache.org Subject: Re: using SimpleAuthenticator is not working References: <3fa4e7f2-1320-c7b0-de54-c8b33111c1f3@me.com> <4CE43E12.2010801@pdf.com> In-Reply-To: <4CE43E12.2010801@pdf.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit One other thing, while login() hangs when called on the server side, and nothing is logged, I see the following logged when I kill the hanged process. DEBUG 13:01:10,640 logged out: null Thanks On 11/17/2010 12:41 PM, Alaa Zubaidi wrote: > Hi Aaron, > > I used the client, and was able to login. > E:\cassandra>bin\cassandra-cli.bat -host 191.111.1.11 -port 9160 > Starting Cassandra Client > Connected to: "Test Cluster" on 191.111.1.11/9160 > Welcome to cassandra CLI. > > Type 'help' or '?' for help. Type 'quit' or 'exit' to quit. > [default@unknown] use Realtime al 'al' > Authenticated to keyspace: Realtime > [alaa@Realtime] > > and here is whats logged sever side: > DEBUG 12:38:04,921 logged in: # > > I am using Java/thrift on windows. > > Regards, > Alaa > > On 11/15/2010 5:37 PM, Aaron Morton wrote: >> Can you try using the command line cassandra-cli tool ? fire it up >> and look at >> the online help, if you pass a user name and password to the "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 wrote: >> >> > I removed the exception handling and It seems that the login() is >> hanging? >> > >> > On 11/15/2010 1:36 PM, Eric Evans wrote: >> > > On Mon, 2010-11-15 at 12:26 -0800, Alaa Zubaidi wrote: >> > >> I set authority to SimpleAuthority and >> log4j.rootLogger=DEBUG,stdout,R >> > >> >> > >> and its still the same, the error in my application is >> > >> $batch_mutate_result.read(Cassandra.java:16477) >> > >> InvalidRequestException(why: you have not logged in) >> > >> >> > >> and in the system.log after DEBUG ...... Disseminating load >> info... >> > >> DEBUG ...... batch_mutate >> > >> >> > >> There is no mention to the login() and set_keyspace() methods. >> > >> and no other information.. >> > > The login() method will either raise an AuthenticationException >> in the >> > > client application if the login failed, or log something like >> "logged >> > > in: #" if it succeeded. >> > > >> > > Either you're not actually calling login(), or your code is >> trapping the >> > > exception and obscuring the failure. >> > > >> > > >> > >> > -- > Alaa Zubaidi >> > PDF Solutions, Inc. >> > 333 West San Carlos Street, Suite 700 >> > San Jose, CA 95110 USA >> > Tel: 408-283-5639 (or 408-280-7900 x5639) >> > fax: 408-938-6479 >> > email: alaa.zubaidi@pdf.com >> > >> > > -- Alaa Zubaidi PDF Solutions, Inc. 333 West San Carlos Street, Suite 700 San Jose, CA 95110 USA Tel: 408-283-5639 (or 408-280-7900 x5639) fax: 408-938-6479 email: alaa.zubaidi@pdf.com