com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: cassandra/172.18.0.2:9042 (com.datastax.driver.core.exceptions.TransportException: [cassandra/172.18.0.2:9042] Cannot connect))

  1. 0

    Retry connection to Cassandra node upon startup

    Stack Overflow | 4 months ago | Vladimir Matveev
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: cassandra/172.18.0.2:9042 (com.datastax.driver.core.exceptions.TransportException: [cassandra/172.18.0.2:9042] Cannot connect))
  2. 0

    Does not work with Cassandra 3.0

    GitHub | 12 months ago | gw0
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /1.2.3.4:9042 (com.datastax.driver.core.exceptions.InvalidQueryException: unconfigured table schema_keyspaces))
  3. 0

    [Kundera-datastax] NoHostAvailableException

    GitHub | 2 years ago | ansarrafique
    com.impetus.kundera.KunderaException: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (no host was tried)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Intermittent Cassandra connection failures

    GitHub | 2 years ago | mkaberman
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /127.0.0.1:9142 (com.datastax.driver.core.TransportException: [/127.0.0.1:9142] Cannot connect))
  6. 0

    AchillesResourceBuilder often fails to start an embedded cassandra

    GitHub | 2 years ago | bric3
    com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: localhost/127.0.0.1:9330 (com.datastax.driver.core.TransportException: [localhost/127.0.0.1:9330] Cannot connect))

  1. kid 2 times, last 3 weeks ago
24 unregistered visitors
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.NoHostAvailableException

    All host(s) tried for query failed (tried: cassandra/172.18.0.2:9042 (com.datastax.driver.core.exceptions.TransportException: [cassandra/172.18.0.2:9042] Cannot connect))

    at com.datastax.driver.core.ControlConnection.reconnectInternal()
  2. DataStax Java Driver for Apache Cassandra - Core
    Cluster.connect
    1. com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:233)
    2. com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:79)
    3. com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1454)
    4. com.datastax.driver.core.Cluster.init(Cluster.java:163)
    5. com.datastax.driver.core.Cluster.connectAsync(Cluster.java:334)
    6. com.datastax.driver.core.Cluster.connectAsync(Cluster.java:309)
    7. com.datastax.driver.core.Cluster.connect(Cluster.java:251)
    7 frames