0

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 Answers2

2

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>
Maksym Polshcha
  • 18,030
  • 8
  • 52
  • 77
0

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>
dkblinux98
  • 386
  • 2
  • 6
  • Hi Darlo, Thanks for replying. But I am still getting same error even on using maven dependency 1.0.5-dse – mangeeteden Dec 31 '13 at 06:19
  • I am also running into this issue and I can't update to the version 2 driver as a third party library depends on 1.0.5-dse. – ColinMc Apr 04 '14 at 11:48