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
  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

  5. 0

    How to get pass "requires authentication" while connecting to remote Cassandra cluster using SparkConf?

    Stack Overflow | 2 years ago | Justin
    com.datastax.driver.core.exceptions.AuthenticationException: Authentication error on host /192.168.1.219:9042: Host /192.168.1.219:9042 requires authentication, but no authenticator found in Cluster configuration
  6. 0

    Not able to change Authentication in spark-cassandra-connector

    Stack Overflow | 8 months ago | Kaushal
    java.io.IOException: Failed to open native connection to Cassandra at {192.168.1.17}:9042

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    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