Re: using SimpleAuthenticator is not working

2010-11-18 Thread Alaa Zubaidi
Thanks, its working now... On 11/18/2010 1:50 PM, Nick Bailey wrote: I believe the map of credentials should be creds.put("username", "your_username"); creds.put("password", "your_password"); So you have two entries in the map, one for user and one for password. No idea why that call would be

Re: using SimpleAuthenticator is not working

2010-11-18 Thread Nick Bailey
I believe the map of credentials should be creds.put("username", "your_username"); creds.put("password", "your_password"); So you have two entries in the map, one for user and one for password. No idea why that call would be hanging though. On Thu, Nov 18, 2010 at 1:46 PM, Alaa Zubaidi wrote:

Re: using SimpleAuthenticator is not working

2010-11-18 Thread Alaa Zubaidi
Hi Aaron, Thanks for the help.. If I don't use the Authenticator, and keep it at AllowAll it will work find.. I tried provide an invalid password but it behaved the same... Here is what i am doing: Map creds = new HashMap(); creds.put("username", "pwd"); AuthenticationRe

Re: using SimpleAuthenticator is not working

2010-11-18 Thread aaron morton
I *think* that message is just from when the connection is closed. Sorry this is a hard one to help with, as it's more than likely something to do with your client app. Some guessing... Everything is working if you do not use the authenticator ? Can you inspect the ports on the server and see

Re: using SimpleAuthenticator is not working

2010-11-17 Thread Alaa Zubaidi
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

Re: using SimpleAuthenticator is not working

2010-11-17 Thread Alaa Zubaidi
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. [defa...@unknown]

Re: using SimpleAuthenticator is not working

2010-11-15 Thread Aaron Morton
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 (wit

Re: using SimpleAuthenticator is not working

2010-11-15 Thread Alaa Zubaidi
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

Re: using SimpleAuthenticator is not working

2010-11-15 Thread Eric Evans
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) > >

Re: using SimpleAuthenticator is not working

2010-11-15 Thread Alaa Zubaidi
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..

Re: using SimpleAuthenticator is not working

2010-11-15 Thread Eric Evans
On Mon, 2010-11-15 at 11:30 -0800, Alaa Zubaidi wrote: > I tried both setting authority to > org.apache.cassandra.auth.SimpleAuthority and AllowAllAuthority... If you are using SimpleAuthenticator then you should be using SimpleAuthority. > I uncommitted the "Application logging options" in > lo

Re: using SimpleAuthenticator is not working

2010-11-15 Thread Alaa Zubaidi
aa Zubaidi wrote: using SimpleAuthenticator is not working with me in beta 3 I am doing the following: ·In Cassandra.yaml Set authenticator: org.apache.cassandra.auth.SimpleAuthenticator ·Add username and password to passwd.proprties ·Add username to keyspace and column family permission in access

Re: using SimpleAuthenticator is not working

2010-11-14 Thread Eric Evans
On Fri, 2010-11-12 at 17:07 -0800, Alaa Zubaidi wrote: > using SimpleAuthenticator is not working with me in beta 3 > > I am doing the following: > > ·In Cassandra.yaml Set > authenticator: org.apache.cassandra.auth.SimpleAuthenticator > ·Add username and password to pa

Re: using SimpleAuthenticator is not working

2010-11-13 Thread Alaa Zubaidi
No, the sever is not logging anything On 11/13/2010 4:27 PM, Stu Hood wrote: Is the server logging anything during the failed authentication? On Fri, Nov 12, 2010 at 8:07 PM, Alaa Zubaidi wrote: using SimpleAuthenticator is not working with me in beta 3 I am doing the following

Re: using SimpleAuthenticator is not working

2010-11-13 Thread Stu Hood
Is the server logging anything during the failed authentication? On Fri, Nov 12, 2010 at 8:07 PM, Alaa Zubaidi wrote: > using SimpleAuthenticator is not working with me in beta 3 > > I am doing the following: > > · In Cassandra.yaml Set

using SimpleAuthenticator is not working

2010-11-12 Thread Alaa Zubaidi
using SimpleAuthenticator is not working with me in beta 3 I am doing the following: ·In Cassandra.yaml Set authenticator: org.apache.cassandra.auth.SimpleAuthenticator ·Add username and password to passwd.proprties ·Add username to keyspace and column family permission in access.proprties ·Add