Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems using org.apache.cassandra.auth.SimpleAuthenticator with Windows

Ray Clark
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have everything set up but I can't seem to get authentication to work. I think my problem might be how to tell Cassandra where the and files are. Here is what I've tried in the cassandra.bat file:

I first tried specifying it on the CASSANDRA_PARAMS line as this:

set CASSANDRA_PARAMS=-Dcassandra -Dcassandra-foreground=yes\conf\\conf\

I then tried specifying it on the JAVA_OPTS line as follows:


No matter what I try I keep getting this:

I am calling HFactory.createCluster as follows:

I ran it in debug and I know the correct username and password are being passed in so I'm guessing that Cassandra can't find the properties files.

Any ideas?

  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic