com.datastax.driver.core.exceptions.NoHostAvailableException

All host(s) tried for query failed (tried: cassandra04.finn.no/152.90.241.27:7615 (com.datastax.driver.core.TransportException: [cassandra04.finn.no/152.90.241.27:7615] Connection has been closed), cassandra05.finn.no/152.90.241.30:7615 (com.datastax.driver.core.exceptions.DriverException: Timed out waiting for server response), cassandra06.finn.no/152.90.241.35:7615 (com.datastax.driver.core.TransportException: [cassandra06.finn.no/152.90.241.35:7615] Connection has been closed), cassandra03.finn.no/152.90.241.24:7615, cassandra02.finn.no/152.90.241.23:7615 [only showing errors of first 3 hosts, use getErrors() for more details])

Samebug tips0

There are no available Samebug tips for this exception. If you know how to solve this issue, help other users by writing a short tip.

Don't give up yet. Paste your full stack trace to get a solution.

Solutions on the web367

  • via DataStax JIRA by mck, 1 year ago
    All host(s) tried for query failed (tried: cassandra04.finn.no/152.90.241.27:7615 (com.datastax.driver.core.TransportException: [cassandra04.finn.no/152.90.241.27:7615] Connection has been closed), cassandra05.finn.no/152.90.241.30:7615
  • via DataStax JIRA by mck, 1 year ago
    All host(s) tried for query failed (tried: cassandra04.finn.no/152.90.241.27:7615 (com.datastax.driver.core.TransportException: [cassandra04.finn.no/152.90.241.27:7615] Connection has been closed), cassandra05.finn.no/152.90.241.30:7615
  • via DataStax JIRA by Rishikesan, 1 year ago
    has been closed), /192.168.250.165:9042, /192.168.249.91:9042 [only showing errors of first 3 hosts, use getErrors() for more details])
  • Stack trace

    • com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: cassandra04.finn.no/152.90.241.27:7615 (com.datastax.driver.core.TransportException: [cassandra04.finn.no/152.90.241.27:7615] Connection has been closed), cassandra05.finn.no/152.90.241.30:7615 (com.datastax.driver.core.exceptions.DriverException: Timed out waiting for server response), cassandra06.finn.no/152.90.241.35:7615 (com.datastax.driver.core.TransportException: [cassandra06.finn.no/152.90.241.35:7615] Connection has been closed), cassandra03.finn.no/152.90.241.24:7615, cassandra02.finn.no/152.90.241.23:7615 [only showing errors of first 3 hosts, use getErrors() for more details]) at com.datastax.driver.core.exceptions.NoHostAvailableException.copy(NoHostAvailableException.java:84) at com.datastax.driver.core.DefaultResultSetFuture.extractCauseFromExecutionException(DefaultResultSetFuture.java:289) at com.datastax.driver.core.DefaultResultSetFuture.getUninterruptibly(DefaultResultSetFuture.java:205) at com.datastax.driver.core.AbstractSession.execute(AbstractSession.java:52) at no.finntech.ipgeoimport.dao.IPCounterDao.increment(IPCounterDao.java:291) at no.finntech.ipgeoimport.service.IPCounterServiceImpl.incrIpCounter(IPCounterServiceImpl.java:74) at no.finntech.ipgeoimport.jobs.KafkaEventConsumer$Callback.consume(KafkaEventConsumer.java:85) at no.finntech.ipgeoimport.jobs.KafkaEventConsumer$Callback.consume(KafkaEventConsumer.java:59) at no.finntech.commons.messaging.KafkaMessageConsumer$PartitionConsumer.run(KafkaMessageConsumer.java:367) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) at java.lang.Thread.run(Thread.java:745) Caused by: com.datastax.driver.core.exceptions.NoHostAvailableException: All host(s) tried for query failed (tried: cassandra04.finn.no/152.90.241.27:7615 (com.datastax.driver.core.TransportException: [cassandra04.finn.no/152.90.241.27:7615] Connection has been closed), cassandra05.finn.no/152.90.241.30:7615 (com.datastax.driver.core.exceptions.DriverException: Timed out waiting for server response), cassandra06.finn.no/152.90.241.35:7615 (com.datastax.driver.core.TransportException: [cassandra06.finn.no/152.90.241.35:7615] Connection has been closed), cassandra03.finn.no/152.90.241.24:7615, cassandra02.finn.no/152.90.241.23:7615 [only showing errors of first 3 hosts, use getErrors() for more details]) at com.datastax.driver.core.RequestHandler.sendRequest(RequestHandler.java:108) at com.datastax.driver.core.RequestHandler$1.run(RequestHandler.java:179) ... 3 more

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago
    Unknown user
    Once, 1 year ago