cassandra java woe

Exception in thread “main” com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: (com.datastax.driver.core.exceptions.TransportException: [9042] Cannot connect))

for meant “you are connecting to it from a different host, but by default it doesn’t listen on a public facing IP address, so do¬†this

One thought on “cassandra java woe”

  1. at com.datastax.driver.core.ControlConnection.reconnectInternal(
    at com.datastax.driver.core.ControlConnection.connect(
    at com.datastax.driver.core.Cluster$Manager.negotiateProtocolVersionAndConnect(
    at com.datastax.driver.core.Cluster$Manager.init(
    at com.datastax.driver.core.Cluster.init(
    at com.datastax.driver.core.Cluster.connectAsync(
    at com.datastax.driver.core.Cluster.connectAsync(
    at com.datastax.driver.core.Cluster.connect(
    at org.Yo.main(

Leave a Reply

Your email address will not be published. Required fields are marked *

Time limit is exhausted. Please reload the CAPTCHA.