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

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: MapString, String creds = new HashMapString, String(); creds.put(username, pwd);

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

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 hanging

Re: using SimpleAuthenticator is not working

2010-11-17 Thread Alaa Zubaidi
Hi Aaron, I used the client, and was able to login. E:\cassandrabin\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 Alaa Zubaidi
I tried both setting authority to org.apache.cassandra.auth.SimpleAuthority and AllowAllAuthority... I uncommitted the Application logging options in log4j-server.properties, is this enough? Thanks, On 11/14/2010 8:10 AM, Eric Evans wrote: On Fri, 2010-11-12 at 17:07 -0800, Alaa Zubaidi

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

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

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) and

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 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 (with

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 passwd.proprties ·Add username to

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 alaa.zuba...@pdf.com wrote: using SimpleAuthenticator is not working with me in beta 3 I am doing the following: · In Cassandra.yaml Set authenticator: