Thursday, January 23, 2014

C# Driver for Apache Cassandra Remote Authentication


Apache Cassandra is an open source distributed database management system designed to handle large amounts of data across many commodity servers, providing high availability with no single point of failure.

They have many APIs and Drivers available at the following URL http://www.datastax.com/download/clientdrivers 

One of those drivers is Cassandra-sharp , the philosophy of cassandra-sharp is to be really simple and fast: no Linq provider, no complex API. Just CQL, simple object mapping and great performance.

One of the requirements I had for our cloud environment was being able to create user accounts and assign privileges on KEYSPACES.

I came up with a simple class and everything worked just fine on my local machine, however whenever we attempted to do remote authentication we got this error message:


_cluster= Cluster.Builder().WithCredentials("user","pass").WithPort(port).AddContactPoint(node).Build();

Cassandra.AuthenticationException: Unsupported Authenticator org.apache.cassandra.auth.PasswordAuthenticator

We opened a case with DATASTAX and they mentioned the C# modified version for DSE 3.1/3.2 authentication wasn't available yet but might be ready by the end of January 2014.

I'll will share with you once the updated driver is provided if this solves the Remote Authentication issue.

UPDATE: This has been fixed with the latest version of Cassandra C# driver.



No comments:

Post a Comment