com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /172.17.0.66:9042: Host /172.17.0.66:9042 requires authentication, but no authenticator found in Cluster configuration

DataStax JIRA | Mehdi Chaouchi | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    The Cassandra data model has changed, but I had not yet changed the requests of one of my play applications. So, when my Play application has try to connect and authenticate on Cassandra, I had this error message: {code} com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /172.17.0.66:9042: Host /172.17.0.66:9042 requires authentication, but no authenticator found in Cluster configuration at com.datastax.driver.core.AuthProvider$1.newAuthenticator(AuthProvider.java:38) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Connection.initializeTransport(Connection.java:156) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Connection.<init>(Connection.java:111) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Connection$Factory.open(Connection.java:544) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:244) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:190) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1230) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster.init(Cluster.java:157) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster.connect(Cluster.java:245) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster.connect(Cluster.java:278) ~[cassandra-driver-core-2.1.4.jar:na] {code} But the real problem is not the one mentioned in the message. And when I updated my requests, my play application could connect and authenticate to Cassandra.

    DataStax JIRA | 2 years ago | Mehdi Chaouchi
    com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /172.17.0.66:9042: Host /172.17.0.66:9042 requires authentication, but no authenticator found in Cluster configuration
  2. 0

    The Cassandra data model has changed, but I had not yet changed the requests of one of my play applications. So, when my Play application has try to connect and authenticate on Cassandra, I had this error message: {code} com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /172.17.0.66:9042: Host /172.17.0.66:9042 requires authentication, but no authenticator found in Cluster configuration at com.datastax.driver.core.AuthProvider$1.newAuthenticator(AuthProvider.java:38) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Connection.initializeTransport(Connection.java:156) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Connection.<init>(Connection.java:111) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Connection$Factory.open(Connection.java:544) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:244) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:190) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1230) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster.init(Cluster.java:157) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster.connect(Cluster.java:245) ~[cassandra-driver-core-2.1.4.jar:na] at com.datastax.driver.core.Cluster.connect(Cluster.java:278) ~[cassandra-driver-core-2.1.4.jar:na] {code} But the real problem is not the one mentioned in the message. And when I updated my requests, my play application could connect and authenticate to Cassandra.

    DataStax JIRA | 2 years ago | Mehdi Chaouchi
    com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /172.17.0.66:9042: Host /172.17.0.66:9042 requires authentication, but no authenticator found in Cluster configuration
  3. 0

    GitHub comment 7#73973273

    GitHub | 2 years ago | oscerd
    com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /127.0.0.1:9042: Host /127.0.0.1:9042 requires authentication, but no authenticator found in Cluster configuration
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

    Root Cause Analysis

    1. com.datastax.driver.core.exceptions.AuthenticationException

      Authentication error on host /172.17.0.66:9042: Host /172.17.0.66:9042 requires authentication, but no authenticator found in Cluster configuration

      at com.datastax.driver.core.AuthProvider$1.newAuthenticator()
    2. DataStax Java Driver for Apache Cassandra - Core
      Cluster.connect
      1. com.datastax.driver.core.AuthProvider$1.newAuthenticator(AuthProvider.java:38)[cassandra-driver-core-2.1.4.jar:na]
      2. com.datastax.driver.core.Connection.initializeTransport(Connection.java:156)[cassandra-driver-core-2.1.4.jar:na]
      3. com.datastax.driver.core.Connection.<init>(Connection.java:111)[cassandra-driver-core-2.1.4.jar:na]
      4. com.datastax.driver.core.Connection$Factory.open(Connection.java:544)[cassandra-driver-core-2.1.4.jar:na]
      5. com.datastax.driver.core.ControlConnection.tryConnect(ControlConnection.java:244)[cassandra-driver-core-2.1.4.jar:na]
      6. com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:190)[cassandra-driver-core-2.1.4.jar:na]
      7. com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:78)[cassandra-driver-core-2.1.4.jar:na]
      8. com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1230)[cassandra-driver-core-2.1.4.jar:na]
      9. com.datastax.driver.core.Cluster.init(Cluster.java:157)[cassandra-driver-core-2.1.4.jar:na]
      10. com.datastax.driver.core.Cluster.connect(Cluster.java:245)[cassandra-driver-core-2.1.4.jar:na]
      11. com.datastax.driver.core.Cluster.connect(Cluster.java:278)[cassandra-driver-core-2.1.4.jar:na]
      11 frames