Re: Accesing Cassandra Database which uses 'PasswordAuthenticator' in Java

2015-02-10 Thread Chamila Wijayarathna
Hi Deepak, Thanks. Got it working by adding withCredentials method. cluster = Cluster.builder() .addContactPoint(node) .withCredentials("yourusername", "yourpassword") .build(); On Wed, Feb 11, 2015 at 2:03 AM, Deepak Shetty wrote: > see the API docs > http://www.data

Re: Accesing Cassandra Database which uses 'PasswordAuthenticator' in Java

2015-02-10 Thread Deepak Shetty
see the API docs http://www.datastax.com/drivers/java/2.0/index.html Cluster.builder has a withCredentials method regards deepak On Tue, Feb 10, 2015 at 12:24 PM, Chamila Wijayarathna < cdwijayarat...@gmail.com> wrote: > Hello all, > > I changed the authenticator value of my Cassandra database t

Accesing Cassandra Database which uses 'PasswordAuthenticator' in Java

2015-02-10 Thread Chamila Wijayarathna
Hello all, I changed the authenticator value of my Cassandra database to 'PasswordAuthenticator' in cassandra.yaml file. Previously I used following code to connect to the database using java. public void connect(String node) { cluster = Cluster.builder() .addContactPoint(nod