com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /172.17.1.XX:9160 (com.datastax.driver.core.TransportException: [/172.17.1.XX:9160] Cannot connect))

There are no available Samebug tips for this exception. Do you have an idea how to solve this issue? A short tip would help users who saw this issue last week.

  • Cassandra connection fails
    via Stack Overflow by Gops AB
    ,
  • Cannot able to connect to another host
    via Ask Ubuntu by Gops AB
    ,
  • GitHub comment 387#244919655
    via GitHub by ankitaa89
    ,
  • cassandra single node connection error
    via Stack Overflow by user3498704
    ,
  • All host(s) tried for query failed
    via Stack Overflow by Antonio Gallo
    ,
    • com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: /172.17.1.XX:9160 (com.datastax.driver.core.TransportException: [/172.17.1.XX:9160] Cannot connect)) at com.datastax.driver.core.ControlConnection.reconnectInternal(ControlConnection.java:196) at com.datastax.driver.core.ControlConnection.connect(ControlConnection.java:80) at com.datastax.driver.core.Cluster$Manager.init(Cluster.java:1145) at com.datastax.driver.core.Cluster.getMetadata(Cluster.java:313) at com.example.cassandra.Client.connect(Client.java:18) at com.example.cassandra.Client.main(Client.java:74)

    Users with the same issue

    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor1 times, last one,
    Unknown visitor2 times, last one,
    Unknown visitor1 times, last one,
    33 more bugmates