Authentication error on host /127.0.0.1: SASL Authentication is not supported in version 1 of the protocol

815 views Asked by At

Getting following exception while connecting to Cassandra Cluster withAuthentication:

Exception in thread "main" com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /127.0.0.1: SASL Authentication is not supported in version 1 of the protocol at com.datastax.driver.core.Connection.waitForSaslCompletion(Connection.java:203) at com.datastax.driver.core.Connection.initializeTransport(Connection.java:169)

  • I am using PasswordAuthenticator and CassandraAuth* in Config file.
  • Using default Cassandra account(cassandra/cassandra)
2

There are 2 answers

2
dkblinux98 On

DSE distributes a patched driver for use with DSE 3.1 authentication.

See https://github.com/datastax/java-driver/tree/1.0 and this...

DSE users should use the following Maven dependency (note the version is set to 1.0.5-dse):

<dependency>
  <groupId>com.datastax.cassandra</groupId>
  <artifactId>cassandra-driver-core</artifactId>
  <version>1.0.5-dse</version>
</dependency>
0
mangeeteden On

Th problem is resolved by using the following maven dependency:

<dependency>
    <groupId>com.datastax.cassandra</groupId>
    <artifactId>cassandra-driver-core</artifactId>
    <version>2.0.0-rc2</version>
</dependency>